From f116040e63fa3033139d27a906bd509998413748 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Sun, 9 Jul 2023 15:14:36 +0100 Subject: [PATCH] fix: expose call method so a consumer can use it (#3680) Co-authored-by: Matthias Seitz --- crates/rpc/rpc/src/eth/api/call.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/crates/rpc/rpc/src/eth/api/call.rs b/crates/rpc/rpc/src/eth/api/call.rs index cca5d4b26e..29cbdcfc44 100644 --- a/crates/rpc/rpc/src/eth/api/call.rs +++ b/crates/rpc/rpc/src/eth/api/call.rs @@ -38,18 +38,14 @@ where Network: NetworkInfo + Send + Sync + 'static, { /// Estimate gas needed for execution of the `request` at the [BlockId]. - pub(crate) async fn estimate_gas_at( - &self, - request: CallRequest, - at: BlockId, - ) -> EthResult { + pub async fn estimate_gas_at(&self, request: CallRequest, at: BlockId) -> EthResult { let (cfg, block_env, at) = self.evm_env_at(at).await?; let state = self.state_at(at)?; self.estimate_gas_with(cfg, block_env, request, state) } /// Executes the call request (`eth_call`) and returns the output - pub(crate) async fn call( + pub async fn call( &self, request: CallRequest, block_number: Option,