Function load_account

Source
pub fn load_account(
    info: &AccountInfo<'_>,
    key: Pubkey,
    is_writable: bool,
) -> Result<(), ProgramError>
Expand description

Errors if:

  • Address does not match the expected value.
  • Expected to be writable, but is not.