From fe843bb125fa4150da6156769640b5dcf1bbb869 Mon Sep 17 00:00:00 2001 From: greged93 <82421016+greged93@users.noreply.github.com> Date: Fri, 18 Oct 2024 16:41:42 +0200 Subject: [PATCH] fix: rename methods (#1469) rename methods for correct dispatch Signed-off-by: Gregory Edison --- src/providers/eth_provider/gas.rs | 2 +- src/providers/eth_provider/provider.rs | 4 ++-- src/providers/eth_provider/state.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/providers/eth_provider/gas.rs b/src/providers/eth_provider/gas.rs index b58754037..13162209f 100644 --- a/src/providers/eth_provider/gas.rs +++ b/src/providers/eth_provider/gas.rs @@ -46,7 +46,7 @@ where // Set a high gas limit to make sure the transaction will not fail due to gas. let request = TransactionRequest { gas: Some(u64::MAX), ..request }; - let gas_used = self.estimate_gas(request, block_id).await?; + let gas_used = self.estimate_gas_inner(request, block_id).await?; // 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. diff --git a/src/providers/eth_provider/provider.rs b/src/providers/eth_provider/provider.rs index c42c2e3be..ccb868449 100644 --- a/src/providers/eth_provider/provider.rs +++ b/src/providers/eth_provider/provider.rs @@ -145,7 +145,7 @@ where } /// Call the Kakarot contract with the given request. - pub(crate) async fn call_helper( + pub(crate) async fn call_inner( &self, request: TransactionRequest, block_id: Option, @@ -184,7 +184,7 @@ where } /// Estimate the gas used in Kakarot for the given request. - pub(crate) async fn estimate_gas( + pub(crate) async fn estimate_gas_inner( &self, request: TransactionRequest, block_id: Option, diff --git a/src/providers/eth_provider/state.rs b/src/providers/eth_provider/state.rs index 34538d4c9..7a4490954 100644 --- a/src/providers/eth_provider/state.rs +++ b/src/providers/eth_provider/state.rs @@ -176,7 +176,7 @@ where } // If no state or block overrides are present, call the helper function to execute the call. - let output = self.call_helper(request, block_id).await?; + let output = self.call_inner(request, block_id).await?; Ok(Bytes::from(output.0.into_iter().filter_map(|x| x.to_u8()).collect::>())) } }