Function ore_api::loaders::load_sysvar
source ยท pub fn load_sysvar<'a, 'info>(
info: &'a AccountInfo<'info>,
key: Pubkey,
) -> Result<(), ProgramError>
Expand description
Errors if:
- Owner is not the sysvar address.
- Account cannot load with the expected address.