Function spl_governance::state::realm_config::get_realm_config_data_for_realm
source · pub fn get_realm_config_data_for_realm(
program_id: &Pubkey,
realm_config_info: &AccountInfo<'_>,
realm: &Pubkey
) -> Result<RealmConfigAccount, ProgramError>
Expand description
If the account exists then deserializes it into RealmConfigAccount struct and checks the owner program and the Realm it belongs to If the account doesn’t exist then it checks its address is derived from the given owner program and Realm and returns default RealmConfigAccount