Closed lirycoac closed 6 years ago
I deployed your contracts in Remix online IDE.. Called contract works well but the Caller contract just can get and can not set here is the error message Error: VM Exception while processing transaction: revert BTW, I used ganache and metamask
Did you set the EVM version of your executing environment to Byzantium
? The recent versions of the compiler use some features that are not present in the older EVM versions.
@chriseth , Sorry for the delay. I've tried setting the compiler version in Solidity to 0.4.18 and it worked. Thanks!
what about the version after 0.4.18 ?
@tanhuiya please open a new issue with detailed description.
Here's my code, including the caller and called contract:
There are two scenarios:
First, I deployed the contracts on my private chain and I set the gas price to be zero on all transactions. Both the setter and getter works well when I invoke them directly in the Called contract. But when I do it through the Caller contract, the setter works fine while the getter doesn't.
For the second scenario, I deployed them on to Ropsten Test Net and set gas price to be 1 gwei on each transaction. Everything just worked fine.
BTW, I'm using Remix online IDE and MetaMask chrome extension.