Function spl_governance::addins::voter_weight::get_voter_weight_record_data[][src]

pub fn get_voter_weight_record_data(
    program_id: &Pubkey,
    voter_weight_record_info: &AccountInfo<'_>
) -> Result<VoterWeightRecord, ProgramError>
Expand description

Deserializes VoterWeightRecord account and checks owner program