chore(rpc): remove redundant EthTransactions::provider (#12121)

This commit is contained in:
Emilia Hane
2024-10-28 18:14:40 +08:00
committed by GitHub
parent 77e5748124
commit 8f5fd1d70c
3 changed files with 15 additions and 31 deletions

View File

@ -19,13 +19,9 @@ use crate::{OpEthApi, SequencerClient};
impl<N> EthTransactions for OpEthApi<N>
where
Self: LoadTransaction,
N: FullNodeComponents,
Self: LoadTransaction<Provider: BlockReaderIdExt>,
N: RpcNodeCore,
{
fn provider(&self) -> impl BlockReaderIdExt {
self.inner.provider()
}
fn signers(&self) -> &parking_lot::RwLock<Vec<Box<dyn EthSigner>>> {
self.inner.signers()
}
@ -71,7 +67,7 @@ where
impl<N> OpEthApi<N>
where
N: FullNodeComponents,
N: RpcNodeCore,
{
/// Returns the [`SequencerClient`] if one is set.
pub fn raw_tx_forwarder(&self) -> Option<SequencerClient> {