![]() You might then still see compile errors but that's what makes v0.5 great because they made some improvements you should troubleshoot one-by-one I also recommend upgrading ganache-cli (I had problems running the tests with old version): npm install -g ganache-cli When you then run truffle-compile you should still see errors because they changed the syntax of pragma (found that here). BlockCatIO/solidity-flattener requires that solc is installed globally because of certain features (installation described here). ![]() Usually you should avoid installing global packages but e.g. Rm -R -f node_modules #cleanup step (might not be necessary)Ĭheck with truffle version in a terminal window at some other place (not project dir) if it matches the current release here otherwise do this: npm uninstall -g truffle Rm -R -f build #cleanup step (might not be necessary) Npm install #repeat for all outdated packages I think you could have changed specified the solc version like here (didn't try that) but meanwhile all of the mentioned fully support 0.5 (openzeppelin since 2 days ago at time of writing).Ĭonsider doing the following npm outdated During solidity (solc) 0.5 releases the different frameworks like solc, truffle, web3, openzeppelin had a timeframe where some had a 0.5 compatible version released and some didn't.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |