Tweak to pallet-nicks (#10565)

* Slightly easier for humans to parse

* cargo fmt

* Use the simpler format for construct_runtime.
This commit is contained in:
Squirrel
2021-12-28 23:22:48 +00:00
committed by GitHub
parent 670d2b082f
commit 409d810089
+7 -8
View File
@@ -43,11 +43,10 @@ pub use pallet::*;
use sp_runtime::traits::{StaticLookup, Zero};
use sp_std::prelude::*;
type BalanceOf<T> =
<<T as Config>::Currency as Currency<<T as frame_system::Config>::AccountId>>::Balance;
type NegativeImbalanceOf<T> = <<T as Config>::Currency as Currency<
<T as frame_system::Config>::AccountId,
>>::NegativeImbalance;
type AccountIdOf<T> = <T as frame_system::Config>::AccountId;
type BalanceOf<T> = <<T as Config>::Currency as Currency<AccountIdOf<T>>>::Balance;
type NegativeImbalanceOf<T> =
<<T as Config>::Currency as Currency<AccountIdOf<T>>>::NegativeImbalance;
#[frame_support::pallet]
pub mod pallet {
@@ -265,9 +264,9 @@ mod tests {
NodeBlock = Block,
UncheckedExtrinsic = UncheckedExtrinsic,
{
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
Nicks: pallet_nicks::{Pallet, Call, Storage, Event<T>},
System: frame_system,
Balances: pallet_balances,
Nicks: pallet_nicks,
}
);