-
Notifications
You must be signed in to change notification settings - Fork 2k
feat(anvil): add eth_call
block overrides (like geth)
#10458
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
Comments
Could I try working on this feature? |
yes please foundry/crates/anvil/core/src/eth/mod.rs Line 153 in 9e5f4b9
and then change this field foundry/crates/anvil/src/eth/backend/mem/mod.rs Line 1362 in 9e5f4b9
to which has both state and block overrides. for actually applying block overrides, we can copy and modify: @mablr updated instructions, ty! |
Thank you very much @mattsse for these precise instructions! Since this issue concerns the |
yeah, let's also do that |
Uh oh!
There was an error while loading. Please reload this page.
Component
Anvil
Describe the feature you would like
add support for block context overrides in
eth_call
.this would allow specifying parameters like
block.timestamp
,block.number
, etc., for aneth_call
's execution context, not just state overrides.Additional context
geth implemented this in its v1.12.0 release (may 25, 2023), via an optional fourth argument to
eth_call
. (see "add block overrides to eth_call (#26414)" in the geth v1.12.0 release notes).geth
eth_call
documentation: https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-eth#eth-callThe text was updated successfully, but these errors were encountered: