remix-project: [Bug] Contract call failing in Remix UI (failing to read on-chain data)
I was trying to call my contract that’s deployed to Kovan, but I kept getting this Metamask error in my browser console:
Invalid params: unknown field \`timestamp\`, expected one of \`type\`, \`from\`, \`to\`, \`gasPrice\`, \`gas\`, \`value\`, \`data\`, \`nonce\`, \`accessList\`.
I tried with my Kovan Infura provider instead on Metamask, still got the same error:
call to PriceConsumerV3.getLatestPrice errored: Error: Returned error: Invalid params: unknown field `timestamp`, expected one of `type`, `from`, `to`, `gasPrice`, `gas`, `value`, `data`, `nonce`, `accessList`.
I double-checked that the network was switched to Kovan for both times.
The contract call works just fine on Etherscan’s contract UI though: https://kovan.etherscan.io/address/0x31C09Eaf8bA8D8FC9Ab044896F870cD737617FF6#readContract
Contract code is available on that same Etherscan link above.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 8
- Comments: 21
This seems like a very big deal. I can’t read any data from contracts using the Injected Web3 interface. I’m seeing this on newly created & compiled & deployed contracts.
This is fixed and will be coming as a patch release on live most probably today itself.
In the meantime, you can test it on https://remix-alpha.ethereum.org/
thanks for reporting this, we will take care of the issue ASAP