Skip to content

Commit

Permalink
(ranked_collective) adapt paritytech/polkadot-sdk#3156 (MemberSwapped…
Browse files Browse the repository at this point in the history
…Handler)
  • Loading branch information
bkontur committed Feb 19, 2024
1 parent 7272865 commit 630d58f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions relay/kusama/src/governance/fellowship.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,5 +360,9 @@ impl pallet_ranked_collective::Config<FellowshipCollectiveInstance> for Runtime
EitherOf<frame_system::EnsureRootWithSuccess<Self::AccountId, ConstU16<65535>>, Fellows>;
type Polls = FellowshipReferenda;
type MinRankOfClass = sp_runtime::traits::Identity;
// TODO:(PR#187)(PR#3156): check MemberSwappedHandler/BenchmarkSetup
type MemberSwappedHandler = ();
type VoteWeight = pallet_ranked_collective::Geometric;
#[cfg(feature = "runtime-benchmarks")]
type BenchmarkSetup = ();
}
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ impl pallet_ranked_collective::Config<FellowshipCollectiveInstance> for Runtime
EitherOf<frame_system::EnsureRootWithSuccess<Self::AccountId, ConstU16<65535>>>;
type Polls = FellowshipReferenda;
type MinRankOfClass = tracks::MinRankOfClass;
type MemberSwappedHandler = (crate::FellowshipCore, crate::FellowshipSalary);
type VoteWeight = pallet_ranked_collective::Geometric;
#[cfg(feature = "runtime-benchmarks")]
type BenchmarkSetup = (crate::FellowshipCore, crate::FellowshipSalary);
}

pub type FellowshipCoreInstance = pallet_core_fellowship::Instance1;
Expand Down

0 comments on commit 630d58f

Please sign in to comment.