diff --git a/crates/revm/src/optimism/l1block.rs b/crates/revm/src/optimism/l1block.rs index 6a19b18b298..1fd2e195230 100644 --- a/crates/revm/src/optimism/l1block.rs +++ b/crates/revm/src/optimism/l1block.rs @@ -90,12 +90,14 @@ impl L1BlockInfo { .as_ref(), ); - // Check if the L1 fee scalars are empty. If so, we use the Bedrock cost function. The L1 fee overhead is + // Check if the L1 fee scalars are empty. If so, we use the Bedrock cost function. The L1 fee overhead is // only necessary if `empty_scalars` is true, as it was deprecated in Ecotone. let empty_scalars = l1_blob_base_fee == U256::ZERO && l1_fee_scalars[BASE_FEE_SCALAR_OFFSET..BLOB_BASE_FEE_SCALAR_OFFSET + 4] == EMPTY_SCALARS; - let l1_fee_overhead = empty_scalars.then(|| db.storage(L1_BLOCK_CONTRACT, L1_OVERHEAD_SLOT)).transpose()?; + let l1_fee_overhead = empty_scalars + .then(|| db.storage(L1_BLOCK_CONTRACT, L1_OVERHEAD_SLOT)) + .transpose()?; Ok(L1BlockInfo { l1_base_fee, @@ -104,7 +106,6 @@ impl L1BlockInfo { l1_blob_base_fee_scalar: Some(l1_blob_base_fee_scalar), empty_scalars, l1_fee_overhead, - ..Default::default() }) } }