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: 4844 fee fixes #8963

Merged
merged 15 commits into from
Sep 27, 2024
Merged

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Sep 26, 2024

Closes: alloy-rs/alloy#1371

because this will fail eth_call/estimate if the request contains blob version hashes but we don't set a blob price in the txenv:

https://github.com/foundry-rs/foundry/blob/master/crates/anvil/src/eth/backend/mem/mod.rs#L1235-L1235

needs test case from alloy-rs/alloy#1371

@zerosnacks zerosnacks added the T-blocked Type: blocked label Sep 27, 2024
@zerosnacks
Copy link
Member

Marking as blocked as it depends on alloy-rs/alloy#1389

…rr` value: ErrorResp(ErrorPayload { code: -32003, message: "Block `blob_versioned_hashes` is not supported before the Cancun hardfork", data: None })
@mattsse mattsse marked this pull request as ready for review September 27, 2024 18:08
Copy link
Member Author

@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.

one nit

Comment on lines 1235 to 1237
max_fee_per_blob_gas: max_fee_per_blob_gas
.or(env.block.get_blob_gasprice())
.map(U256::from),
Copy link
Member Author

Choose a reason for hiding this comment

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

we only need to do this if the blob_versioned hashes are non zero, so we can do this with an or_else here

@zerosnacks zerosnacks removed the T-blocked Type: blocked label Sep 27, 2024
@mattsse mattsse changed the title fix: use zero blob fee for estimate fix: 4844 fee fixes Sep 27, 2024
@zerosnacks zerosnacks self-requested a review September 27, 2024 18:48
@zerosnacks zerosnacks enabled auto-merge (squash) September 27, 2024 18:48
@zerosnacks zerosnacks merged commit 25f24e6 into foundry-rs:master Sep 27, 2024
21 checks passed
@zerosnacks zerosnacks assigned zerosnacks and unassigned zerosnacks Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

[Bug] recommended fillers fail to estimate eip4844 tx gas
2 participants