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
The eth_feeHistory called by default when calling eth_sendTransaction returns undefined #3395
Comments
This issue is also being tracked on Linear. We use Linear to manage our development process, but we keep the conversations on Github. LINEAR-ID: 454495df-a38f-4d4b-9e0b-0374cc0cedcb |
Hi @sunchengzhu, I'm not sure I understand the issue here. Is the Hardhat endpoint returning |
Hi @fvictorio,I mean It is feasible to send eth_feeHistory to the node directly through the curl command curl -X POST --data '{ "id": 1337, "jsonrpc": "2.0", "method": "eth_feeHistory", "params": ["0x1", "latest", []] }' http://127.0.0.1:8545 {"jsonrpc":"2.0","id":1337,"result":{"oldestBlock":"0x0","baseFeePerGas":["0x3b9aca00","0x342770c0"],"gasUsedRatio":[0]}} |
Thanks a lot @sunchengzhu, this helped me find a very subtle bug. @gitpoap-bot @sunchengzhu deserves a gitpoap |
Congrats, @sunchengzhu ! You've earned a GitPOAP for your contribution! GitPOAP: 2022 Hardhat Contributor: Head to gitpoap.io & connect your GitHub account to mint! Learn more about GitPOAPs here. |
I noticed that when I use hardhat to call
eth_sendTransaction
, such ascontract.deploy
, if it is sent to a node that supports eip 1559(local hardhat node or goerli) , it will calleth_feeHistory
, but it returns undefined.The corresponding code logic is in
_suggestEip1559FeePriceValues()
ofgas-providers.ts
The text was updated successfully, but these errors were encountered: