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

fix(anvil): Apply state overrides in debug_traceCall #9172

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

iliastsa
Copy link
Contributor

Motivation

State overrides are very useful when trying to simulate transactions. However, the debug_traceCall implementation did not apply the provided state overrides.

Solution

The solution was to apply the state overrides similarly to the eth_call logic. I've also included a small test to verify that the patch is effective.

Co-authored-by: mixy1 <michael_debono@hotmail.com>
@mattsse mattsse enabled auto-merge (squash) October 23, 2024 14:37
auto-merge was automatically disabled October 23, 2024 14:58

Head branch was pushed to by a user without write access

@grandizzy grandizzy merged commit 4c84dc7 into foundry-rs:master Oct 23, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

3 participants