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): disable basefee if manually set to 0 #5126

Merged
merged 3 commits into from
Jun 9, 2023

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Jun 9, 2023

should close #5125

we disable basefee check if basefee is 0

https://github.com/bluealloy/revm/blob/69f417f15755d7fcf9fac8dd2df3dc4cb2cd6bad/crates/primitives/src/env.rs#L282

this can never happen naturally because the lower limit technically possible is 7

@mattsse mattsse added the A-evm Area: EVM label Jun 9, 2023
Copy link
Member

@Evalir Evalir left a comment

Choose a reason for hiding this comment

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

amazing find! hopefully this should smoothen out the rest of the gas estimation issues

@mattsse
Copy link
Member Author

mattsse commented Jun 9, 2023

I only enabled this on mine, I'll do the same on estimate

@mattsse mattsse merged commit 2ffa619 into foundry-rs:master Jun 9, 2023
0xvanbeethoven added a commit to SorellaLabs/fastfoundry that referenced this pull request Jun 9, 2023
fix(anvil): disable basefee if manually set to 0 (foundry-rs#5126)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-evm Area: EVM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Anvil local rejecting 0 base tx fee when using --base-fee 0
2 participants