Function spl_governance::addins::voter_weight::assert_is_valid_voter_weight
source · [−]pub fn assert_is_valid_voter_weight(
voter_weight_record: &VoterWeightRecord,
weight_action: VoterWeightAction,
weight_action_target: &Pubkey
) -> Result<(), ProgramError>
Expand description
Asserts the VoterWeightRecord hasn’t expired and matches the given action and target if specified