Closed zerosnacks closed 1 month ago
lgtm, this is effectively a safe guard to prevent user error, right?
It is but it mostly enables you do not define the field and rely on the filler. What happens is that the transaction is serialized as 0 as the field is required. This is then interpreted as Some(0)
rather than None
that would previously then skip the filler.
Motivation
Closes: https://github.com/alloy-rs/alloy/issues/1371
Solution
Related Foundry PR: https://github.com/foundry-rs/foundry/pull/8963 that depends on this implementation
If
max_fee_per_blob_gas
isSome(0)
orNone
we set it to a valid valuenext_block_blob_fee()
.PR Checklist