Function spl_governance::state::token_owner_record::get_token_owner_record_data_for_realm_and_governing_mint [−][src]
pub fn get_token_owner_record_data_for_realm_and_governing_mint(
program_id: &Pubkey,
token_owner_record_info: &AccountInfo<'_>,
realm: &Pubkey,
governing_token_mint: &Pubkey
) -> Result<TokenOwnerRecord, ProgramError>
Expand description
Deserializes TokenOwnerRecord account and checks that its PDA matches the given realm and governing mint