Open wktian1987 opened 4 years ago
I can reproduce it. With VM, it works fine but with testnet, it shows wrong value as OP mentioned.
I tested it further. Issue appears with ropsten
, rinkeby
, and goerli
testnets on remix and outside remix too (tested using ethers.js). It works fine with vm
on remix and with kovan
on or outside remix. This doesn't seem an issue with Remix IDE.
There is a similar issue here too: https://github.com/ethereum/solidity/issues/8545