-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix: 4844 fee fixes #8963
Conversation
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 })
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one nit
max_fee_per_blob_gas: max_fee_per_blob_gas | ||
.or(env.block.get_blob_gasprice()) | ||
.map(U256::from), |
There was a problem hiding this comment.
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
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