add substrate-rpc-primitives to use NubmerOrHex in rpc.rs (#19)

This commit is contained in:
Andrew Plaza
2019-09-16 03:20:54 -07:00
committed by Andrew Jones
parent e9070e2786
commit f9ae14bdb9
2 changed files with 3 additions and 4 deletions
+2 -4
View File
@@ -44,12 +44,10 @@ use std::convert::TryInto;
use substrate_primitives::storage::StorageKey;
use substrate_rpc_api::{
author::AuthorClient,
chain::{
number::NumberOrHex,
ChainClient,
},
chain::ChainClient,
state::StateClient,
};
use substrate_rpc_primitives::number::NumberOrHex;
pub type ChainBlock<T> = SignedBlock<Block<<T as System>::Header, OpaqueExtrinsic>>;
pub type BlockNumber<T> = NumberOrHex<<T as System>::BlockNumber>;