-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tony/metaplex-core-voter #103
base: master
Are you sure you want to change the base?
Conversation
Initial voter clone
…a directly in the Collection account and doesn't need to be an input.
Changed the way we get Collection Size
…_voter_weight_record`
Tony/passing tests
gm team, apart from the reviewed comments, please do the following:
regards, |
.unwrap(); | ||
|
||
// The weight never expires and only changes when collections are configured | ||
max_voter_weight_record.max_voter_weight_expiry = None; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since, update_max_voter_weight_record
will take care of the max voter weight,configure_collection
should reset the fields on MaxVoterWeightRecord:
max_voter_weight_record.max_voter_weight = 0;
max_voter_weight_record.max_voter_weight_expiry = Some(0);
Setting it to None
will bypass the slot check if update_max_voter_weight_record
is not called.
Just picking back up on this, apologise we were away. |
No description provided.