Skip to content

Commit

Permalink
constructor for MemberRecord (paritytech#13473)
Browse files Browse the repository at this point in the history
  • Loading branch information
muharem authored and ukint-vs committed Apr 10, 2023
1 parent 0d3e00a commit 276d26c
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 276d26c

Please sign in to comment.