load_escrow

Function load_escrow 

Source
pub fn load_escrow<'a, 'info>(
    info: &'a AccountInfo<'info>,
    authority: &Pubkey,
    is_writable: bool,
) -> Result<(), ProgramError>
Expand description

Errors if:

  • Owner is not relay program.
  • Data is empty.
  • Account cannot be parsed to a escrow account.
  • Escrow authority is not expected value.
  • Expected to be writable, but is not.