Function load_system_program

Source
pub fn load_system_program(info: &AccountInfo) -> Result<(), ProgramError>
Expand description

Loads the account as a system program, returning an error if it is not.

§Arguments

  • info - The account to load the system program from

§Returns

  • Result<(), ProgramError> - The result of the operation