Function spl_governance::state::token_owner_record::get_token_owner_record_data_for_realm_and_governing_mint
source · 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<TokenOwnerRecordV2, ProgramError>
Expand description
Deserializes TokenOwnerRecord account and asserts it belongs to the given realm and is for the given governing mint