fix: add clear tx l1 cost back (#14564)

This commit is contained in:
Matthias Seitz
2025-02-18 15:56:49 +01:00
committed by GitHub
parent 29f4ca2a61
commit 31b2819066

View File

@ -59,6 +59,11 @@ where
timestamp,
};
// We must clear this cache as different L2 transactions can have different
// L1 costs. A potential improvement here is to only clear the cache if the
// new transaction input has changed, since otherwise the L1 cost wouldn't.
l1_block_info.clear_tx_l1_cost();
Ok(OpReceiptBuilder::new(
&self.inner.eth_api.provider().chain_spec(),
tx,