Skip to content

Commit

Permalink
ci fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdud007 committed Jun 25, 2024
1 parent 88a14cb commit cf0ce51
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,7 @@ impl TryFrom<RpcTx> for ConsensusTx {
match &tx.version()? {
TxType::Legacy => {
let to = tx.to();
let gas_price: u128 = if let Some(gas_price) = tx.0.gas_price {
gas_price
} else {
0
};
let gas_price: u128 = tx.0.gas_price.unwrap_or_default();

let res = TxLegacy {
chain_id,
Expand All @@ -237,11 +233,7 @@ impl TryFrom<RpcTx> for ConsensusTx {
}
TxType::Eip2930 => {
let to = tx.to();
let gas_price: u128 = if let Some(gas_price) = tx.0.gas_price {
gas_price
} else {
0
};
let gas_price: u128 = tx.0.gas_price.unwrap_or_default();

let res = TxEip2930 {
chain_id: chain_id.unwrap(),
Expand Down

0 comments on commit cf0ce51

Please sign in to comment.