diff --git a/crates/wallet/src/lib.rs b/crates/wallet/src/lib.rs index 8cf1d15..a3b39d5 100644 --- a/crates/wallet/src/lib.rs +++ b/crates/wallet/src/lib.rs @@ -270,12 +270,12 @@ where request = request.gas_limit(estimate.to()); // set gas fees - let (max_fee_per_gas, max_priority_fee_per_gas) = + let (base_fee, max_priority_fee_per_gas) = LoadFee::eip1559_fees(&self.inner.eth_api, None, None) .await .map_err(|_| AlphaNetWalletError::InvalidTransactionRequest)?; - request.max_fee_per_gas = Some((max_fee_per_gas + max_priority_fee_per_gas).to()); - request.max_priority_fee_per_gas = Some(max_priority_fee_per_gas.to()); + 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.gas_price = None; // build and sign