[client cli] generic blocknumber (#4376)

* rewrite me

* [cli]: make `BlockNumber` generic

* cleanup
This commit is contained in:
Niklas Adolfsson
2019-12-17 11:45:20 +01:00
committed by Bastian Köcher
parent e19f5adfb7
commit 7c6ad9dd1c
5 changed files with 54 additions and 14 deletions
+1 -1
View File
@@ -172,7 +172,7 @@ pub trait Trait: 'static + Eq + Clone {
/// The block number type used by the runtime.
type BlockNumber:
Parameter + Member + MaybeSerializeDeserialize + Debug + MaybeDisplay + SimpleArithmetic
+ Default + Bounded + Copy + sp_std::hash::Hash;
+ Default + Bounded + Copy + sp_std::hash::Hash + sp_std::str::FromStr;
/// The output of the `Hashing` function.
type Hash: