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.

@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
rplusq pushed a commit to rplusq/foundry that referenced this pull request Nov 29, 2024
* fix(anvil): Apply state overrides in debug_traceCall

Co-authored-by: mixy1 <[email protected]>

* chore(anvil): fix formatting

---------

Co-authored-by: mixy1 <[email protected]>
@grandizzy grandizzy added T-bug Type: bug C-anvil Command: anvil labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-anvil Command: anvil T-bug Type: bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants