Skip to content

Commit

Permalink
fix: expose call method so a consumer can use it (#3680)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
  • Loading branch information
joshstevens19 and mattsse authored Jul 9, 2023
1 parent 1330fc1 commit f116040
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions crates/rpc/rpc/src/eth/api/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<U256> {
pub async fn estimate_gas_at(&self, request: CallRequest, at: BlockId) -> EthResult<U256> {
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<BlockId>,
Expand Down

0 comments on commit f116040

Please sign in to comment.