mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 00:31:07 +00:00
Switch All construct_runtimes to New Syntax (#2979)
Clean up all the old syntax. --------- Co-authored-by: command-bot <> Co-authored-by: gupnik <nikhilgupta.iitk@gmail.com> Co-authored-by: Nikhil Gupta <17176722+gupnik@users.noreply.github.com> Co-authored-by: Maksym H <1177472+mordamax@users.noreply.github.com>
This commit is contained in:
@@ -38,11 +38,11 @@ pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, u64,
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Event<T>},
|
||||
Collective: pallet_collective::<Instance1>::{Pallet, Call, Event<T>, Origin<T>, Config<T>},
|
||||
CollectiveMajority: pallet_collective::<Instance2>::{Pallet, Call, Event<T>, Origin<T>, Config<T>},
|
||||
DefaultCollective: pallet_collective::{Pallet, Call, Event<T>, Origin<T>, Config<T>},
|
||||
Democracy: mock_democracy::{Pallet, Call, Event<T>},
|
||||
System: frame_system,
|
||||
Collective: pallet_collective::<Instance1>,
|
||||
CollectiveMajority: pallet_collective::<Instance2>,
|
||||
DefaultCollective: pallet_collective,
|
||||
Democracy: mock_democracy,
|
||||
}
|
||||
);
|
||||
|
||||
@@ -176,6 +176,7 @@ impl ExtBuilder {
|
||||
|
||||
pub fn build(self) -> sp_io::TestExternalities {
|
||||
let mut ext: sp_io::TestExternalities = RuntimeGenesisConfig {
|
||||
system: frame_system::GenesisConfig::default(),
|
||||
collective: pallet_collective::GenesisConfig {
|
||||
members: self.collective_members,
|
||||
phantom: Default::default(),
|
||||
|
||||
Reference in New Issue
Block a user