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

Max class voters for ranked collective vote tally #13313

Merged
merged 7 commits into from
May 17, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
saturating sub
  • Loading branch information
muharem committed May 17, 2023
commit 868aa3db751d9312412abf75631f01f6058bb4e1
2 changes: 1 addition & 1 deletion frame/ranked-collective/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ impl Polling<TallyOf<Test>> for TestPolls {
pub struct MinRankOfClass<Delta>(PhantomData<Delta>);
impl<Delta: Get<Rank>> Convert<Class, Rank> for MinRankOfClass<Delta> {
fn convert(a: Class) -> Rank {
a - Delta::get()
a.saturating_sub(Delta::get())
}
}

Expand Down