diff --git a/src/api/eth.rs b/src/api/eth.rs index 47d2c6d2..fb8a0d60 100644 --- a/src/api/eth.rs +++ b/src/api/eth.rs @@ -3,7 +3,7 @@ use crate::api::Namespace; use crate::helpers::{self, CallFuture}; use crate::types::{ - Address, Block, BlockId, BlockNumber, Bytes, CallRequest, Filter, Index, Log, SyncState, Transaction, + Address, Block, BlockHeader, BlockId, BlockNumber, Bytes, CallRequest, Filter, Index, Log, SyncState, Transaction, TransactionId, TransactionReceipt, TransactionRequest, Work, H256, H520, H64, U256, U64, }; use crate::Transport; @@ -220,7 +220,7 @@ impl Eth { } /// Get uncle by block ID and uncle index -- transactions only has hashes. - pub fn uncle(&self, block: BlockId, index: Index) -> CallFuture>, T::Out> { + pub fn uncle(&self, block: BlockId, index: Index) -> CallFuture, T::Out> { let index = helpers::serialize(&index); let result = match block { @@ -335,8 +335,8 @@ mod tests { use crate::api::Namespace; use crate::rpc::Value; use crate::types::{ - Address, Block, BlockId, BlockNumber, Bytes, CallRequest, FilterBuilder, Log, SyncInfo, SyncState, Transaction, - TransactionId, TransactionReceipt, TransactionRequest, Work, H256, H520, H64, + Address, Block, BlockHeader, BlockId, BlockNumber, Bytes, CallRequest, FilterBuilder, Log, SyncInfo, SyncState, + Transaction, TransactionId, TransactionReceipt, TransactionRequest, Work, H256, H520, H64, }; use super::Eth; @@ -656,7 +656,7 @@ mod tests { => "eth_getUncleByBlockHashAndIndex", vec![r#""0x0000000000000000000000000000000000000000000000000000000000000123""#, r#""0x5""#]; ::serde_json::from_str(EXAMPLE_BLOCK).unwrap() - => Some(::serde_json::from_str::>(EXAMPLE_BLOCK).unwrap()) + => Some(::serde_json::from_str::(EXAMPLE_BLOCK).unwrap()) ); rpc_test! (