From 620ad47eab9f1627a5277f38e4106684d4e0b30e Mon Sep 17 00:00:00 2001 From: Oliver Nordbjerg Date: Sat, 12 Oct 2024 11:02:39 +0200 Subject: [PATCH] chore: rm fee bump --- crates/wallet/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/wallet/src/lib.rs b/crates/wallet/src/lib.rs index 0f6f4e1..ea541cc 100644 --- a/crates/wallet/src/lib.rs +++ b/crates/wallet/src/lib.rs @@ -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::() * 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