From 26f4cc13ea057ec9d22a7161b7afb8749720b17e Mon Sep 17 00:00:00 2001 From: librelois <c@elo.tf> Date: Fri, 21 Jan 2022 22:03:06 +0100 Subject: [PATCH] fix(runtimes):pallet AuthorityMembers must be init before pallet Session --- runtime/g1/src/lib.rs | 16 ++++++++-------- runtime/gtest/src/lib.rs | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/runtime/g1/src/lib.rs b/runtime/g1/src/lib.rs index 987edc2c3..39889d679 100644 --- a/runtime/g1/src/lib.rs +++ b/runtime/g1/src/lib.rs @@ -172,14 +172,14 @@ construct_runtime!( TransactionPayment: pallet_transaction_payment::{Pallet, Storage} = 32, // Consensus support. - Authorship: pallet_authorship::{Pallet, Call, Storage} = 10, - Offences: pallet_offences::{Pallet, Storage, Event} = 11, - Historical: session_historical::{Pallet} = 12, - Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 13, - Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event} = 14, - ImOnline: pallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>} = 15, - AuthorityDiscovery: pallet_authority_discovery::{Pallet, Config} = 16, - AuthorityMembers: pallet_authority_members::{Pallet, Call, Storage, Config<T>, Event<T>} = 17, + AuthorityMembers: pallet_authority_members::{Pallet, Call, Storage, Config<T>, Event<T>} = 10, + Authorship: pallet_authorship::{Pallet, Call, Storage} = 11, + Offences: pallet_offences::{Pallet, Storage, Event} = 12, + Historical: session_historical::{Pallet} = 13, + Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 14, + Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event} = 15, + ImOnline: pallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>} = 16, + AuthorityDiscovery: pallet_authority_discovery::{Pallet, Config} = 17, // Governance stuff. Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>} = 20, diff --git a/runtime/gtest/src/lib.rs b/runtime/gtest/src/lib.rs index 2b9876905..96b1c9416 100644 --- a/runtime/gtest/src/lib.rs +++ b/runtime/gtest/src/lib.rs @@ -172,14 +172,14 @@ construct_runtime!( TransactionPayment: pallet_transaction_payment::{Pallet, Storage} = 32, // Consensus support. - Authorship: pallet_authorship::{Pallet, Call, Storage} = 10, - Offences: pallet_offences::{Pallet, Storage, Event} = 11, - Historical: session_historical::{Pallet} = 12, - Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 13, - Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event} = 14, - ImOnline: pallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>} = 15, - AuthorityDiscovery: pallet_authority_discovery::{Pallet, Config} = 16, - AuthorityMembers: pallet_authority_members::{Pallet, Call, Storage, Config<T>, Event<T>} = 17, + AuthorityMembers: pallet_authority_members::{Pallet, Call, Storage, Config<T>, Event<T>} = 10, + Authorship: pallet_authorship::{Pallet, Call, Storage} = 11, + Offences: pallet_offences::{Pallet, Storage, Event} = 12, + Historical: session_historical::{Pallet} = 13, + Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 14, + Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config, Event} = 15, + ImOnline: pallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>} = 16, + AuthorityDiscovery: pallet_authority_discovery::{Pallet, Config} = 17, // Governance stuff. Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>} = 20, -- GitLab