mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
fix: add clear tx l1 cost back (#14564)
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user