Function spl_governance::state::realm::get_realm_data_for_governing_token_mint[][src]

pub fn get_realm_data_for_governing_token_mint(
    program_id: &Pubkey,
    realm_info: &AccountInfo<'_>,
    governing_token_mint: &Pubkey
) -> Result<Realm, ProgramError>
Expand description

Deserializes Ream account and asserts the given governing_token_mint is either Community or Council mint of the Realm