Solidity ^0.6.0 Compile Error #3117
Comments
Hey @linoleparquet ! Truffle v5 versions earlier than v5.1.5 won't successfully compile ^0.6.0 solidity contracts because the solc wrapper Truffle used (directly from solc-js) was only compatible with ^0.5.0 contracts. I recommend upgrading to either Sorry for the annoyance! Happy to re-open if you also experience trouble on |
Wait, I am looking at the npm truffle doc and it looks like 5.1.49 is the latest version? https://www.npmjs.com/package/truffle?activeTab=versions Am I missing something? |
@bcrvc that's correct. are you experiencing this issue on latest? |
Never mind, I was trying to figure out why it doesn't compile but I just made a mistake in truffle-config. |
please, it will be good and ok if you can share your mistake in the truffle-config so as to make upcoming that have similar issue figure it out..... Thanks. @bcrvc |
Issue
When creating a fresh new truffle project with truffle init, change the solc version to ^0.6.0 and run truffle compile this error pops:
Steps to Reproduce
run truffle init
modify the truffle-config.js file : set solc version to ^0.6.0
run truffle compile
Expected Behavior
Compile the Migrations.sol file without error.
Actual Results
Error pop:
Environment
The text was updated successfully, but these errors were encountered: