Function load_config

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

Errors if:

  • Owner is not Marsh program.
  • Address does not match the expected address.
  • Data is empty.
  • Data cannot deserialize into a config account.
  • Expected to be writable, but is not.