mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: Return correct gas price fields for EIP2930 transactions (#2930)
This commit is contained in:
@ -111,7 +111,7 @@ impl Transaction {
|
||||
|
||||
let (gas_price, max_fee_per_gas) = match signed_tx.tx_type() {
|
||||
TxType::Legacy => (Some(U128::from(signed_tx.max_fee_per_gas())), None),
|
||||
TxType::EIP2930 => (None, Some(U128::from(signed_tx.max_fee_per_gas()))),
|
||||
TxType::EIP2930 => (Some(U128::from(signed_tx.max_fee_per_gas())), None),
|
||||
TxType::EIP1559 => {
|
||||
// the gas price field for EIP1559 is set to `min(tip, gasFeeCap - baseFee) +
|
||||
// baseFee`
|
||||
|
||||
Reference in New Issue
Block a user