From f34a2247eff896ba42c1181ab0740ed653996e49 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Mon, 27 May 2024 15:07:38 +0200 Subject: [PATCH] Remove redundant trait --- crates/rpc/rpc-api/src/eth.rs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/crates/rpc/rpc-api/src/eth.rs b/crates/rpc/rpc-api/src/eth.rs index e00c9918605..6f16aff57f6 100644 --- a/crates/rpc/rpc-api/src/eth.rs +++ b/crates/rpc/rpc-api/src/eth.rs @@ -7,24 +7,10 @@ use reth_rpc_types::{ TransactionRequest, Work, }; -pub trait NetworkEthApi { - type Block; - type TxReceipt; - - async fn block_by_hash(&self, eth: &EthApiInner, hash: B256, full: bool) -> RpcResult>; - - async fn build_transaction_receipt( - &self, - tx: TransactionSigned, - meta: TransactionMeta, - receipt: Receipt, - ) -> EthResult; -} - /// Eth rpc interface: #[cfg_attr(not(feature = "client"), rpc(server, namespace = "eth"))] #[cfg_attr(feature = "client", rpc(server, client, namespace = "eth"))] -pub trait EthApi { +pub trait EthApi { /// Returns the protocol version encoded as a string. #[method(name = "protocolVersion")] async fn protocol_version(&self) -> RpcResult; @@ -51,7 +37,7 @@ pub trait EthApi { /// Returns information about a block by hash. #[method(name = "getBlockByHash")] - async fn block_by_hash(&self, hash: B256, full: bool) -> RpcResult>; + async fn block_by_hash(&self, hash: B256, full: bool) -> RpcResult>; /// Returns information about a block by number. #[method(name = "getBlockByNumber")]