Function ore_utils::loaders::load_system_account

source ยท
pub fn load_system_account<'a, 'info>(
    info: &'a AccountInfo<'info>,
    is_writable: bool,
) -> Result<(), ProgramError>
Expand description

Errors if:

  • Owner is not the system program.
  • Data is not empty.
  • Account is not writable.