Remove trait method Call::evm_config (#12095)

This commit is contained in:
Emilia Hane
2024-10-27 00:20:08 +08:00
committed by GitHub
parent b257408060
commit 1bdf429af5
7 changed files with 24 additions and 40 deletions

View File

@ -9,7 +9,7 @@ use reth_primitives::{
};
use reth_rpc_eth_api::{
helpers::{Call, EthCall, LoadState, SpawnBlocking},
FromEthApiError, IntoEthApiError,
FromEthApiError, IntoEthApiError, RpcNodeCore,
};
use reth_rpc_eth_types::{revm_utils::CallFees, RpcInvalidTransactionError};
@ -24,9 +24,9 @@ where
impl<N> Call for OpEthApi<N>
where
Self: LoadState + SpawnBlocking,
N: RpcNodeCore,
Self: LoadState<Evm: ConfigureEvm<Header = Header>> + SpawnBlocking,
Self::Error: From<OpEthApiError>,
N: FullNodeComponents,
{
#[inline]
fn call_gas_limit(&self) -> u64 {
@ -38,11 +38,6 @@ where
self.inner.max_simulate_blocks()
}
#[inline]
fn evm_config(&self) -> &impl ConfigureEvm<Header = Header> {
self.inner.evm_config()
}
fn create_txn_env(
&self,
block_env: &BlockEnv,