Function load_sysvar

Source
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.