Skip to content

Commit

Permalink
fix: 7702 gas fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Oct 9, 2024
1 parent b787d9e commit 42b4cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rpc/rpc-types-compat/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 42b4cb8

Please sign in to comment.