Skip to content

Commit

Permalink
rm max_fee_per_gas field on legacy n eip2930 tx
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Jul 27, 2023
1 parent aaa4c71 commit de9eefb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ain-evm/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ impl SignedTx {

pub fn max_fee_per_gas(&self) -> Option<U256> {
match &self.transaction {
TransactionV2::Legacy(tx) => Some(tx.gas_price),
TransactionV2::EIP2930(tx) => Some(tx.gas_price),
TransactionV2::Legacy(_) => None,
TransactionV2::EIP2930(_) => None,
TransactionV2::EIP1559(tx) => Some(tx.max_fee_per_gas),
}
}
Expand Down

0 comments on commit de9eefb

Please sign in to comment.