Function load_proof_v2

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

Errors if:

  • Owner is not Coal program.
  • Data is empty.
  • Data cannot deserialize into a proof account.
  • Proof authority does not match the expected address.
  • Expected to be writable, but is not.