Function load_treasury

Source
pub fn load_treasury(
    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 treasury account.
  • Expected to be writable, but is not.