Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ETH API: Remix not able to estimate gas because of missing support for block and state override params #11411

Closed
4 of 11 tasks
maciejwitowski opened this issue Nov 12, 2023 · 7 comments
Assignees
Labels
kind/bug Kind: Bug

Comments

@maciejwitowski
Copy link
Contributor

Checklist

  • This is not a security-related bug/issue. If it is, please follow please follow the security policy.
  • I have searched on the issue tracker and the lotus forum, and there is no existing related issue or discussion.
  • I am running the Latest release, the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.
  • I did not make any code changes to lotus.

Lotus component

  • lotus daemon - chain sync
  • lotus fvm/fevm - Lotus FVM and FEVM interactions
  • lotus miner/worker - sealing
  • lotus miner - proving(WindowPoSt/WinningPoSt)
  • lotus JSON-RPC API
  • lotus message management (mpool)
  • Other

Lotus Version

-

Repro Steps

  1. Go to https://remix.ethereum.org/
  2. Try to deploy any contract
  3. You will see this error
    image

Describe the Bug

The error comes from the fact that Remix started passing block and/or state override params to geth API to estimate gas which ETH API in Lotus doesn't support

Logging Information

-
@longfeiWan9
Copy link
Member

This also affects hardhat. It will fail to deploy and invoke smart contracts using hardhat.

@cxytz01
Copy link

cxytz01 commented Nov 24, 2023

https://filecoinproject.slack.com/archives/C017HM9BJ8Z/p1700823496984119

I also met the bug -- when using the abigen tool to generate the Golang code, it will fail when calling a contract function.

@jinqiao0423
Copy link

Please have a fix soon, this one affects a lot of features

@fridrik01 fridrik01 self-assigned this Nov 27, 2023
@maciejwitowski
Copy link
Contributor Author

FYI We are going to work on it this week.

@cryshado
Copy link

cryshado commented Nov 27, 2023

This also affects hardhat. It will fail to deploy and invoke smart contracts using hardhat.

I agree, is an actual problem. I'm using "hardhat": "^2.19.1"

@maciejwitowski
Copy link
Contributor Author

@cxytz01 @cryshado @jinqiao0423 The fix has just been deployed to Glif nodes (https://api.node.glif.io)

@jinqiao0423
Copy link

jinqiao0423 commented Nov 30, 2023

@cxytz01 @cryshado @jinqiao0423 The fix has just been deployed to Glif nodes (https://api.node.glif.io)

Seems also applied on https://api.calibration.node.glif.io/rpc/v1
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Kind: Bug
Projects
None yet
Development

No branches or pull requests

6 participants