Introduce the Get trait and type_parameter. (#2565)

This commit is contained in:
Gavin Wood
2019-05-13 20:58:57 +02:00
committed by GitHub
parent 21773b3a07
commit 20e809668b
2 changed files with 42 additions and 3 deletions
+3 -3
View File
@@ -61,7 +61,7 @@ pub use self::storage::{StorageList, StorageValue, StorageMap, EnumerableStorage
pub use self::hashable::Hashable;
pub use self::dispatch::{Parameter, Dispatchable, Callable, IsSubType};
pub use self::double_map::StorageDoubleMapWithHasher;
pub use runtime_io::print;
pub use runtime_io::{print, storage_root};
#[doc(inline)]
pub use srml_support_procedural::decl_storage;
@@ -96,9 +96,9 @@ macro_rules! ensure {
#[cfg(feature = "std")]
macro_rules! assert_noop {
( $x:expr , $y:expr ) => {
let h = runtime_io::storage_root();
let h = $crate::storage_root();
$crate::assert_err!($x, $y);
assert_eq!(h, runtime_io::storage_root());
assert_eq!(h, $crate::storage_root());
}
}