You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, you can not perform an eth_estimateGas on something that isn't in the 'correct' state as the evm will, correctly, return an error. For example, on an erc20 you may wish to send an approve followed by a transfer call. You can estimate gas for the approve but not the transfer.
Implementation
Add an additional parameter to the end of the request in the same way eth_call does.
Are you willing to implement this feature? Yes
this issue gas been resolved in latest Geth version for eth_estimateGas: ethereum/go-ethereum#27800
works fine in hardhat for eth_call
Search terms
eth_estimateGas feature
The text was updated successfully, but these errors were encountered:
Hey @HackProAIT, thanks for this, I didn't know that geth supported state overrides in eth_estimateGas now, but it makes sense.
We are in the middle of a pretty involved refactor of the Hardhat network, so ideally we'd wait until that it's ready before implementing this. But if you think this has some urgency, we might do it before that (it should be pretty straightforward anyway).
Describe the feature
Currently, you can not perform an
eth_estimateGas
on something that isn't in the 'correct' state as the evm will, correctly, return an error. For example, on an erc20 you may wish to send an approve followed by a transfer call. You can estimate gas for the approve but not the transfer.Implementation
Add an additional parameter to the end of the request in the same way eth_call does.
Are you willing to implement this feature? Yes
this issue gas been resolved in latest Geth version for
eth_estimateGas
: ethereum/go-ethereum#27800works fine in hardhat for
eth_call
Search terms
eth_estimateGas feature
The text was updated successfully, but these errors were encountered: