diff --git a/crates/rpc/rpc-eth-api/src/types.rs b/crates/rpc/rpc-eth-api/src/types.rs index 3f0d526b01..55f1373007 100644 --- a/crates/rpc/rpc-eth-api/src/types.rs +++ b/crates/rpc/rpc-eth-api/src/types.rs @@ -20,7 +20,10 @@ pub trait EthApiTypes: Send + Sync + Clone { + Sync; /// Blockchain primitive types, specific to network, e.g. block and transaction. // todo: remove restriction `reth_rpc_types::Transaction` - type NetworkTypes: Network>; + type NetworkTypes: Network< + TransactionResponse = WithOtherFields, + HeaderResponse = reth_rpc_types::Header, + >; } impl EthApiTypes for () { @@ -32,4 +35,4 @@ impl EthApiTypes for () { pub type RpcTransaction = ::TransactionResponse; /// Adapter for network specific block type. -pub type RpcBlock = Block>; +pub type RpcBlock = Block, ::HeaderResponse>;