Skip to content

fix(anvil): recomputing next-base-fee after reloading state #10488

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

Merged
merged 3 commits into from
May 13, 2025

Conversation

naps62
Copy link
Contributor

@naps62 naps62 commented May 9, 2025

fixes #10484

probably not the cleanest solution, but at least seems I have found the root cause. would appreciate some guidance in how to clean this up, or potential edge cases I may have missed

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes sense to me

ty

just needs smol fmt

mattsse
mattsse previously requested changes May 9, 2025
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we perhaps also add an additional tests like this one here

async fn can_load_state() {

@naps62
Copy link
Contributor Author

naps62 commented May 10, 2025

test added

@grandizzy grandizzy added T-bug Type: bug C-anvil Command: anvil labels May 13, 2025
@grandizzy grandizzy requested a review from mattsse May 13, 2025 07:57
Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thank you! @mattsse good to send?

@grandizzy grandizzy changed the title recomputing next-base-fee after reloading state fix(anvil): recomputing next-base-fee after reloading state May 13, 2025
@mattsse mattsse merged commit e0ad278 into foundry-rs:master May 13, 2025
22 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry May 13, 2025
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
Status: Done
Development

Successfully merging this pull request may close these issues.

Weird baseFee behaviour after restarting from --state
4 participants