Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
946c45a7
Commit
946c45a7
authored
2 years ago
by
Shawn Tabrizi
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
MEL for Ranked Collective (#11602)
parent
776692c0
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/frame/ranked-collective/src/lib.rs
+2
-3
2 additions, 3 deletions
substrate/frame/ranked-collective/src/lib.rs
with
2 additions
and
3 deletions
substrate/frame/ranked-collective/src/lib.rs
+
2
−
3
View file @
946c45a7
...
...
@@ -145,14 +145,14 @@ impl<M: GetMaxVoters> VoteTally<Votes, Rank> for Tally<M> {
}
/// Record needed for every member.
#[derive(PartialEq,
Eq,
Clone,
Encode,
Decode,
RuntimeDebug,
TypeInfo)]
#[derive(PartialEq,
Eq,
Clone,
Encode,
Decode,
RuntimeDebug,
TypeInfo
,
MaxEncodedLen
)]
pub
struct
MemberRecord
{
/// The rank of the member.
rank
:
Rank
,
}
/// Record needed for every vote.
#[derive(PartialEq,
Eq,
Clone,
Copy,
Encode,
Decode,
RuntimeDebug,
TypeInfo)]
#[derive(PartialEq,
Eq,
Clone,
Copy,
Encode,
Decode,
RuntimeDebug,
TypeInfo
,
MaxEncodedLen
)]
pub
enum
VoteRecord
{
/// Vote was an aye with given vote weight.
Aye
(
Votes
),
...
...
@@ -296,7 +296,6 @@ pub mod pallet {
#[pallet::pallet]
#[pallet::generate_store(pub(super)
trait
Store)]
#[pallet::without_storage_info]
pub
struct
Pallet
<
T
,
I
=
()
>
(
PhantomData
<
(
T
,
I
)
>
);
#[pallet::config]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment