From 42b4cb8af99bbc888540451fc5c0346b5795be96 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 9 Oct 2024 17:33:02 +0200 Subject: [PATCH] fix: 7702 gas fields --- crates/rpc/rpc-types-compat/src/transaction/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rpc/rpc-types-compat/src/transaction/mod.rs b/crates/rpc/rpc-types-compat/src/transaction/mod.rs index 4a00bf7a43905..e57c2c84f9718 100644 --- a/crates/rpc/rpc-types-compat/src/transaction/mod.rs +++ b/crates/rpc/rpc-types-compat/src/transaction/mod.rs @@ -41,7 +41,7 @@ pub trait TransactionCompat: Send + Sync + Unpin + Clone + fmt::Debug { TxType::Legacy | TxType::Eip2930 => { GasPrice { gas_price: Some(signed_tx.max_fee_per_gas()), max_fee_per_gas: None } } - TxType::Eip1559 | TxType::Eip4844 => { + TxType::Eip1559 | TxType::Eip4844 | TxType::Eip7702 => { // the gas price field for EIP1559 is set to `min(tip, gasFeeCap - baseFee) + // baseFee` let gas_price = base_fee