Skip to content

Commit 480e9b8

Browse files
committed
fix: base_fee from block header
1 parent eaf96f0 commit 480e9b8

File tree

1 file changed

+1
-1
lines changed
  • crates/anvil/src/eth/backend/mem

1 file changed

+1
-1
lines changed

crates/anvil/src/eth/backend/mem/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3120,7 +3120,7 @@ impl Backend {
31203120
alloy_eips::eip4844::calc_blob_gasprice(excess_blob_gas.unwrap_or_default());
31213121
let blob_gas_used = transaction.blob_gas_used();
31223122

3123-
let effective_gas_price = transaction.effective_gas_price(Some(self.base_fee()));
3123+
let effective_gas_price = transaction.effective_gas_price(block.header.base_fee_per_gas);
31243124

31253125
let receipts = self.get_receipts(block.body.transactions.iter().map(|tx| tx.hash()));
31263126
let next_log_index = receipts[..index].iter().map(|r| r.logs().len()).sum::<usize>();

0 commit comments

Comments
 (0)