diff --git a/apps/fortuna/Cargo.lock b/apps/fortuna/Cargo.lock index bf4e8e87c0..390ae620be 100644 --- a/apps/fortuna/Cargo.lock +++ b/apps/fortuna/Cargo.lock @@ -1554,7 +1554,7 @@ dependencies = [ [[package]] name = "fortuna" -version = "7.4.7" +version = "7.4.8" dependencies = [ "anyhow", "axum", diff --git a/apps/fortuna/Cargo.toml b/apps/fortuna/Cargo.toml index bd0ae25e9d..5beca37f55 100644 --- a/apps/fortuna/Cargo.toml +++ b/apps/fortuna/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fortuna" -version = "7.4.7" +version = "7.4.8" edition = "2021" [lib] diff --git a/apps/fortuna/src/eth_utils/utils.rs b/apps/fortuna/src/eth_utils/utils.rs index 537eee6476..3aa2f8a12c 100644 --- a/apps/fortuna/src/eth_utils/utils.rs +++ b/apps/fortuna/src/eth_utils/utils.rs @@ -166,6 +166,8 @@ pub async fn submit_tx_with_backoff( let num_retries = Arc::new(AtomicU64::new(0)); + let padded_gas_limit = U256::from(escalation_policy.gas_limit_tolerance_pct) * gas_limit / 100; + let success = backoff::future::retry_notify( backoff, || async { @@ -176,7 +178,7 @@ pub async fn submit_tx_with_backoff( submit_tx( middleware.clone(), &call, - gas_limit, + padded_gas_limit, gas_multiplier_pct, fee_multiplier_pct, )