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::>())) } }