Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Oct 25, 2023
1 parent 4952143 commit 16e935a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/erc20_payment_lib/src/sender/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ pub async fn process_transaction(
}
}
let mut max_fee_per_gas = if let Some(max_fee_per_gas) = &web3_tx_dao.max_fee_per_gas {
U256::from_dec_str(max_fee_per_gas).map_err(err_from!())?
max_fee_per_gas.to_u256().map_err(err_from!())?
} else {
chain_setup.max_fee_per_gas
};
let max_priority_fee = if let Some(priority_fee) = &web3_tx_dao.priority_fee {
U256::from_dec_str(priority_fee).map_err(err_from!())?
priority_fee.to_u256().map_err(err_from!())?
} else {
chain_setup.priority_fee
};
Expand Down

0 comments on commit 16e935a

Please sign in to comment.