ethereum-ex icon indicating copy to clipboard operation
ethereum-ex copied to clipboard

solidity ^0.5.8 compile error

Open makelove opened this issue 6 years ago • 1 comments

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

makelove avatar Jul 19 '19 03:07 makelove

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"
    }
  }
}
```	

makelove avatar Jul 19 '19 08:07 makelove