From a9df35c570afdf7f5b081acb09dcf06fc3e5ad42 Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Tue, 17 Dec 2019 12:33:46 +0000 Subject: [PATCH] Add FromStr constraint to BlockNumber, bump version (#56) --- Cargo.toml | 2 +- src/frame/system.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a0af232227..9dbbefebc9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "substrate-subxt" -version = "0.3.0" +version = "0.4.0" authors = ["Parity Technologies "] edition = "2018" diff --git a/src/frame/system.rs b/src/frame/system.rs index 68a02b570a..976238b52f 100644 --- a/src/frame/system.rs +++ b/src/frame/system.rs @@ -71,7 +71,8 @@ pub trait System: 'static + Eq + Clone + Debug { + Default + Bounded + Copy - + std::hash::Hash; + + std::hash::Hash + + std::str::FromStr; /// The output of the `Hashing` function. type Hash: Parameter