Migrate pallet-utility to pallet attribute macro. (#8326)

* Migrate pallet-utility to pallet attribute macro.

* Replace 'Module' with 'Pallet' in benchmarking.
This commit is contained in:
Shaun Wang
2021-03-24 23:35:39 +13:00
committed by GitHub
parent 4ac621292a
commit 4f5668b9bd
3 changed files with 73 additions and 53 deletions
+3 -2
View File
@@ -22,7 +22,7 @@
use super::*;
use frame_support::{
assert_ok, assert_noop, parameter_types, assert_err_ignore_postinfo,
assert_ok, assert_noop, parameter_types, assert_err_ignore_postinfo, decl_module,
weights::{Weight, Pays},
dispatch::{DispatchError, DispatchErrorWithPostInfo, Dispatchable},
traits::Filter,
@@ -35,7 +35,8 @@ use crate as utility;
// example module to test behaviors.
pub mod example {
use super::*;
use frame_support::dispatch::WithPostDispatchInfo;
use frame_system::ensure_signed;
use frame_support::dispatch::{DispatchResultWithPostInfo, WithPostDispatchInfo};
pub trait Config: frame_system::Config { }
decl_module! {