Helper macro for Morph impls (#11570)

* Helper macro for Morph impls

* No need to deprecate for now

* Improved macro

* Doc tests

* Grumbles
This commit is contained in:
Gavin Wood
2022-06-01 17:27:47 +01:00
committed by GitHub
parent bb6bbab687
commit 838dbcbe91
5 changed files with 376 additions and 95 deletions
@@ -23,12 +23,12 @@ use frame_support::{
assert_noop, assert_ok,
error::BadOrigin,
parameter_types,
traits::{ConstU16, ConstU32, ConstU64, EitherOf, Everything, MapSuccess, Polling, ReduceBy},
traits::{ConstU16, ConstU32, ConstU64, EitherOf, Everything, MapSuccess, Polling},
};
use sp_core::H256;
use sp_runtime::{
testing::Header,
traits::{BlakeTwo256, Identity, IdentityLookup},
traits::{BlakeTwo256, Identity, IdentityLookup, ReduceBy},
};
use super::*;