-
Notifications
You must be signed in to change notification settings - Fork 841
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
Allow state override on eth_call and eth_estimateGas #5788
Comments
gm, anyone working on this? I recently had to implement this on client side for jvm wouldn't mind submitting a PR for besu. |
|
Created new issue for block overrides #7822 |
#7801 implements this for eth_call, PR incoming to add the param parsing for eth_estimateGas |
Description
Currently, you can not perform an
eth_estimateGas
or aneth_call
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 approval followed by a transfer call.You can estimate gas for the approve but not the transfer.
You can not check the result of a transfer without an approval first.
As a network participant, I would like access to be able to drop in and replace Besu in certain networks/tooling/RPC stacks.
Acceptance Criteria
Whilst it's not specified in the ethereum rpc spec the implementation should be based on the Geth rpc docs to allow a drop in replacement.
https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-eth#eth-call
The text was updated successfully, but these errors were encountered: