From 28b2ae6d5ad3e802b813b679e26bc15b9b8d230b Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Fri, 3 Mar 2023 17:59:09 +0100 Subject: [PATCH] fix(anvil): return correct gas (#4471) --- anvil/src/eth/api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anvil/src/eth/api.rs b/anvil/src/eth/api.rs index b0440e792..bf4b0eb14 100644 --- a/anvil/src/eth/api.rs +++ b/anvil/src/eth/api.rs @@ -2099,9 +2099,9 @@ impl EthApi { mid_gas_limit = (highest_gas_limit + lowest_gas_limit) / 2; } - trace!(target : "node", "Estimated Gas for call {:?}", gas); + trace!(target : "node", "Estimated Gas for call {:?}", highest_gas_limit); - Ok(gas) + Ok(highest_gas_limit) } /// Updates the `TransactionOrder`