Skip to content

Commit

Permalink
chore(rpc): simplify trait bounds on EthApiSpec impl (#12101)
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane authored Oct 26, 2024
1 parent 923f4ff commit a98dc39
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions crates/rpc/rpc/src/eth/helpers/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@ use reth_chainspec::EthereumHardforks;
use reth_network_api::NetworkInfo;
use reth_provider::{BlockNumReader, ChainSpecProvider, StageCheckpointReader};
use reth_rpc_eth_api::{helpers::EthApiSpec, RpcNodeCore};
use reth_transaction_pool::TransactionPool;

use crate::EthApi;

impl<Provider, Pool, Network, EvmConfig> EthApiSpec for EthApi<Provider, Pool, Network, EvmConfig>
where
Self: RpcNodeCore<Provider = Provider, Network = Network>,
Pool: TransactionPool + 'static,
Provider: ChainSpecProvider<ChainSpec: EthereumHardforks>
+ BlockNumReader
+ StageCheckpointReader
+ 'static,
Network: NetworkInfo + 'static,
EvmConfig: Send + Sync,
Self: RpcNodeCore<
Provider: ChainSpecProvider<ChainSpec: EthereumHardforks>
+ BlockNumReader
+ StageCheckpointReader,
Network: NetworkInfo,
>,
{
fn starting_block(&self) -> U256 {
self.inner.starting_block()
Expand Down

0 comments on commit a98dc39

Please sign in to comment.