From fa0adcd8eea9ca5a1b10a4c4e79cdb32415379fb Mon Sep 17 00:00:00 2001 From: Thomas Coratger <60488569+tcoratger@users.noreply.github.com> Date: Thu, 10 Oct 2024 20:27:48 +0200 Subject: [PATCH] bump estimate gas to 40% (#1445) --- 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 07544b869..c2e34a45a 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 20% to make sure the transaction will not fail due to gas. + // Increase the gas used by 40% 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 * 120 / 100 }; + let gas_used = if cfg!(feature = "hive") { gas_used } else { gas_used * 140 / 100 }; Ok(U256::from(gas_used)) }