Skip to content

Commit

Permalink
chore: rm fee bump (#14)
Browse files Browse the repository at this point in the history
This is no longer needed
  • Loading branch information
onbjerg authored Oct 12, 2024
1 parent ab59802 commit e68d4b6
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 @@ -282,8 +282,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 e68d4b6

Please sign in to comment.