mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 12:17:58 +00:00
migrate alliance, fast-unstake and bags list to use derive-impl (#1636)
Moving a few pallets to the latest and greatest `derive_impl` to give it a try. Part of #171 --------- Co-authored-by: Adrian Catangiu <adrian@parity.io> Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
This commit is contained in:
@@ -31,8 +31,7 @@ use sp_runtime::{BuildStorage, TokenError};
|
||||
type Block = frame_system::mocking::MockBlockU32<Test>;
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
pub enum Test {
|
||||
System: frame_system::{Pallet, Call, Config<T>, Storage, Event<T>},
|
||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>},
|
||||
@@ -43,24 +42,15 @@ frame_support::construct_runtime!(
|
||||
impl frame_system::Config for Test {
|
||||
type Block = Block;
|
||||
type BlockHashCount = ConstU32<250>;
|
||||
type RuntimeOrigin = RuntimeOrigin;
|
||||
type RuntimeCall = RuntimeCall;
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type BaseCallFilter = TestBaseCallFilter;
|
||||
type PalletInfo = PalletInfo;
|
||||
type OnSetCode = ();
|
||||
|
||||
type AccountData = pallet_balances::AccountData<u64>;
|
||||
// This pallet wishes to overwrite this.
|
||||
type BaseCallFilter = TestBaseCallFilter;
|
||||
}
|
||||
|
||||
#[derive_impl(pallet_balances::config_preludes::TestDefaultConfig as pallet_balances::DefaultConfig)]
|
||||
impl pallet_balances::Config for Test {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type RuntimeHoldReason = ();
|
||||
type ReserveIdentifier = [u8; 8];
|
||||
type DustRemoval = ();
|
||||
type AccountStore = System;
|
||||
type ExistentialDeposit = ConstU64<1>;
|
||||
}
|
||||
|
||||
pub struct TestBaseCallFilter;
|
||||
|
||||
Reference in New Issue
Block a user