From e88647485ec09c2ddbeb0fb78c0cb83fb2ed5182 Mon Sep 17 00:00:00 2001 From: Thomas Coratger <60488569+tcoratger@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:16:55 +0200 Subject: [PATCH] estimate-gas: change to 200% (#1462) --- src/providers/eth_provider/gas.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/eth_provider/gas.rs b/src/providers/eth_provider/gas.rs index c2e34a45a..b58754037 100644 --- a/src/providers/eth_provider/gas.rs +++ b/src/providers/eth_provider/gas.rs @@ -48,10 +48,10 @@ where let gas_used = self.estimate_gas(request, block_id).await?; - // Increase the gas used by 40% to make sure the transaction will not fail due to gas. + // Increase the gas used by 200% to make sure the transaction will not fail due to gas. // This is a temporary solution until we have a proper gas estimation. // Does not apply to Hive feature otherwise end2end tests will fail. - let gas_used = if cfg!(feature = "hive") { gas_used } else { gas_used * 140 / 100 }; + let gas_used = if cfg!(feature = "hive") { gas_used } else { gas_used * 2 }; Ok(U256::from(gas_used)) }