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