mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 00:01:09 +00:00
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:
@@ -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! {
|
||||
|
||||
Reference in New Issue
Block a user