serialize partial_fee into string (#4898)

* serialize partial_fee into string

* implement deserialize

* bump version
This commit is contained in:
Xiliang Chen
2020-02-13 01:16:00 +13:00
committed by GitHub
parent b3cf97940c
commit 35b5cdd29b
4 changed files with 52 additions and 50 deletions
@@ -22,6 +22,8 @@ use sp_io;
#[cfg(feature = "std")]
use std::fmt::Display;
#[cfg(feature = "std")]
use std::str::FromStr;
#[cfg(feature = "std")]
use serde::{Serialize, Deserialize, de::DeserializeOwned};
use sp_core::{self, Hasher, Blake2Hasher, TypeId, RuntimeDebug};
use crate::BenchmarkParameter;
@@ -463,6 +465,9 @@ sp_core::impl_maybe_marker!(
/// A type that implements Display when in std environment.
trait MaybeDisplay: Display;
/// A type that implements FromStr when in std environment.
trait MaybeFromStr: FromStr;
/// A type that implements Hash when in std environment.
trait MaybeHash: sp_std::hash::Hash;