Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Reorder EitherOf origins
Browse files Browse the repository at this point in the history
Zero logic change to make the benchmarking work.
It uses the first successful origin which can only promote to rank 6.
By swapping the order we use Root which can always promote.

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
  • Loading branch information
ggwpez committed Oct 2, 2022
1 parent ef88bba commit 93138b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/kusama/src/governance/fellowship.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ impl pallet_ranked_collective::Config<FellowshipCollectiveInstance> for Runtime
// - a vote by the rank *above* the new rank.
type PromoteOrigin = EitherOf<
EitherOf<
frame_system::EnsureRootWithSuccess<Self::AccountId, ConstU16<65535>>,
MapSuccess<
pallet_collective::EnsureProportionAtLeast<
Self::AccountId,
Expand All @@ -344,7 +345,6 @@ impl pallet_ranked_collective::Config<FellowshipCollectiveInstance> for Runtime
>,
Replace<ConstU16<6>>,
>,
frame_system::EnsureRootWithSuccess<Self::AccountId, ConstU16<65535>>,
>,
EitherOf<
MapSuccess<FellowshipAdmin, Replace<ConstU16<9>>>,
Expand Down

0 comments on commit 93138b7

Please sign in to comment.