Skip to content

Commit

Permalink
Tweak to pallet-nicks (paritytech#10565)
Browse files Browse the repository at this point in the history
* Slightly easier for humans to parse

* cargo fmt

* Use the simpler format for construct_runtime.
  • Loading branch information
gilescope authored Dec 28, 2021
1 parent a1fc5cf commit e19dfaa
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions frame/nicks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
}
);

Expand Down

0 comments on commit e19dfaa

Please sign in to comment.