You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
Downloading...
Unpacking...
Setting up...
Unbox successful. Sweet!
Commands:
Compile: truffle compile
Migrate: truffle migrate
Test contracts: truffle test
Test dapp: npm test
Run dev server: npm run start
Build for production: npm run build
truffle develop
Compiling ./contracts/Migrations.sol...
Compiling ./contracts/SimpleStorage.sol...
/Users/zen/Dropbox/Musafa/dev/truffle-uport-react/contracts/SimpleStorage.sol:10:25: ParserError: Expected token LBrace got 'View'
function get() public view returns (uint) {
^
Compiliation failed. See above.
The text was updated successfully, but these errors were encountered:
This is because truffle includes solidity v0.4.15 in the included solc compiler, while view was introduced in 0.4.16. you can either change the pragma and use 0.4.15 (and use constant, view wont work)
--or--
cd /usr/local/lib/node_modules/truffle/
yarn add solc (or at least [email protected])
Following instructions: http://truffleframework.com/boxes/react-uport
truffle develop
The text was updated successfully, but these errors were encountered: