question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Contract call failing in Remix UI (failing to read on-chain data)

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:8
  • Comments:21

github_iconTop GitHub Comments

3reactions
StephenFluincommented, Jun 14, 2021

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.

MetaMask - RPC Error: Invalid params: unknown field `timestamp`, expected one of `type`, `from`, `to`, `gasPrice`, `gas`, `value`, `data`, `nonce`, `accessList`. 
2reactions
Aniket-Enggcommented, Jun 16, 2021

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/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging Transactions — Remix - Ethereum IDE 1 ...
Go to the Run & Deploy module. For the purpose of this tutorial, we will run the Remix VM . Deploy the contract:....
Read more >
Contract Deployed Using Remix Throw Errors: We were not ...
I deployed smart contract using the remix online ide, Whenever I want to perform any of the functions parameters, using etherscan UI interface...
Read more >
msg.value raises error and doesn't send eth to contract
In Remix, there's a "Value" input in the "Deploy and run transactions" tab that allows you to specify the amount. Share.
Read more >
Contracts — Solidity 0.8.17 documentation
IDEs, such as Remix, make the creation process seamless using UI elements. ... If // the call fails (e.g. due to out-of-gas), //...
Read more >
I'm trying to call a function from a deployed contract, But I'm ...
I think you need to increase the allowance. The smart contract is probably trying to use some of your tokens for some reasons...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found