There is a Truffle test failing (Payable.sol). I isolated the issue, and seems like address(this).balance generates an invalid opcode. Even the following very simple example fails with Truffle:
Good catch, I was baffled at what's going on. If I change the version to petersburg the test passes. Let's keep this open, we need to upgrade to istanbul when truffle allows.
There is a Truffle test failing (
Payable.sol
). I isolated the issue, and seems likeaddress(this).balance
generates an invalid opcode. Even the following very simple example fails with Truffle:There was a change in v0.5.13 in the opcode:
So there might be some mismatch between the EVM version the compiler targets and the one we run using Truffle.