Skip to content

Commit

Permalink
chore: rm fee bump
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg committed Oct 12, 2024
1 parent cb726b5 commit 620ad47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/wallet/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ where
LoadFee::eip1559_fees(&self.inner.eth_api, None, None)
.await
.map_err(|_| OdysseyWalletError::InvalidTransactionRequest)?;
request.max_fee_per_gas = Some((base_fee + max_priority_fee_per_gas).to::<u128>() * 2u128);
request.max_priority_fee_per_gas = Some((max_priority_fee_per_gas * U256::from(2)).to());
request.max_fee_per_gas = Some((base_fee + max_priority_fee_per_gas).to());
request.max_priority_fee_per_gas = Some(max_priority_fee_per_gas.to());
request.gas_price = None;

// build and sign
Expand Down

0 comments on commit 620ad47

Please sign in to comment.