I just upgraded my code to Solidity 0.5 and am trying to use the truffle framework with it. I did update my code in Remix and it does seem to work.
The problem I have is that I am unable to compile my code with truffle. I get this error message:
SyntaxError: Source file requires different compiler version (current compiler is 0.4.24+commit.e67f0147.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version pragma solidity ^0.5.0;
I have reinstalled truffle, tried it with the beta version (by first running npm -g uninstall truffle
and then running npm -g install truffle@beta
, reinstalled solc
, but nothing seems to work so far. Does anybody have any idea about what the problem could be?