Function spl_governance::state::governance::get_governance_data_for_realm[][src]

pub fn get_governance_data_for_realm(
    program_id: &Pubkey,
    governance_info: &AccountInfo<'_>,
    realm: &Pubkey
) -> Result<Governance, ProgramError>
Expand description

Deserializes Governance account, checks owner program and asserts governance belongs to the given ream