Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions anvil/src/eth/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,6 @@ impl EthApi {
pending.transaction,
None,
None,
true,
Some(self.backend.base_fee()),
);
// we set the from field here explicitly to the set sender of the pending transaction,
Expand Down Expand Up @@ -1883,7 +1882,6 @@ impl EthApi {
tx.pending_transaction.transaction.clone(),
None,
None,
true,
None,
);

Expand Down Expand Up @@ -2231,7 +2229,6 @@ impl EthApi {
tx,
Some(&block),
Some(info),
true,
Some(base_fee),
);
block_transactions.push(tx);
Expand Down
9 changes: 1 addition & 8 deletions anvil/src/eth/backend/mem/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ impl Backend {
let info = storage.transactions.get(&hash)?.info.clone();
let tx = block.transactions.get(info.transaction_index as usize)?.clone();

let tx = transaction_build(Some(hash), tx, Some(block), Some(info), true, base_fee);
let tx = transaction_build(Some(hash), tx, Some(block), Some(info), base_fee);
transactions.push(tx);
}
Some(transactions)
Expand Down Expand Up @@ -1978,7 +1978,6 @@ impl Backend {
tx,
Some(&block),
Some(info),
true,
block.header.base_fee_per_gas,
))
}
Expand Down Expand Up @@ -2014,7 +2013,6 @@ impl Backend {
tx,
Some(&block),
Some(info),
true,
block.header.base_fee_per_gas,
))
}
Expand Down Expand Up @@ -2238,7 +2236,6 @@ pub fn transaction_build(
eth_transaction: MaybeImpersonatedTransaction,
block: Option<&Block>,
info: Option<TransactionInfo>,
is_eip1559: bool,
base_fee: Option<U256>,
) -> Transaction {
let mut transaction: Transaction = eth_transaction.clone().into();
Expand All @@ -2257,10 +2254,6 @@ pub fn transaction_build(
base_fee.checked_add(max_priority_fee_per_gas).unwrap_or_else(U256::max_value),
);
}
} else if !is_eip1559 {
transaction.max_fee_per_gas = None;
transaction.max_priority_fee_per_gas = None;
transaction.transaction_type = None;
Comment thread
andyrobert3 marked this conversation as resolved.
}

transaction.block_hash =
Expand Down