mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
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:
@@ -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,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user