Function spl_governance::addins::voter_weight::get_voter_weight_record_data_for_token_owner_record
source · [−]pub fn get_voter_weight_record_data_for_token_owner_record(
program_id: &Pubkey,
voter_weight_record_info: &AccountInfo<'_>,
token_owner_record: &TokenOwnerRecordV2
) -> Result<VoterWeightRecord, ProgramError>
Expand description
Deserializes VoterWeightRecord account, checks owner program and asserts it’s for the same realm, mint and token owner as the provided TokenOwnerRecord