ethereum-ex
ethereum-ex copied to clipboard
solidity ^0.5.8 compile error
I am using the latest solidity ^0.5.8
so a lot of error come up
pragma solidity ^0.4.17;
^----------------------^
Error: Truffle is currently using solc 0.5.8, but one or more of your contracts specify "pragma solidity ^0.4.18".
Please update your truffle config or pragma statement(s).
could you update your code ?please
I don't know how to fix
fixed
add to truffle-config.js
module.exports = {
// your existing config goes here
// don't forget to put comma on the last element before proceeding to next line
compilers: {
solc: {
version: "0.4.18"
}
}
}
```