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

Commit

Permalink
constructor for MemberRecord (#13473)
Browse files Browse the repository at this point in the history
  • Loading branch information
muharem authored Feb 27, 2023
1 parent 7c8b89b commit 1cbb2ef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frame/ranked-collective/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ pub struct MemberRecord {
rank: Rank,
}

impl MemberRecord {
// Constructs a new instance of [`MemberRecord`].
pub fn new(rank: Rank) -> Self {
Self { rank }
}
}

/// Record needed for every vote.
#[derive(PartialEq, Eq, Clone, Copy, Encode, Decode, RuntimeDebug, TypeInfo, MaxEncodedLen)]
pub enum VoteRecord {
Expand Down

0 comments on commit 1cbb2ef

Please sign in to comment.