Skip to content

Commit

Permalink
swap hook order to ensure democracy goes before assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi committed Dec 9, 2024
1 parent cdaa7c8 commit bc7e986
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,8 +410,9 @@ parameter_types! {

impl pallet_encointer_scheduler::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
// attention!: EncointerDemocracy must be first hook as it potentially changes the rules for following hooks
type OnCeremonyPhaseChange =
(pallet_encointer_ceremonies::Pallet<Runtime>, pallet_encointer_democracy::Pallet<Runtime>);
(pallet_encointer_democracy::Pallet<Runtime>, pallet_encointer_ceremonies::Pallet<Runtime>);
type MomentsPerDay = MomentsPerDay;
type CeremonyMaster = EnsureRoot<AccountId>;
type WeightInfo = weights::pallet_encointer_scheduler::WeightInfo<Runtime>;
Expand Down

0 comments on commit bc7e986

Please sign in to comment.