coal_api::loaders

Function load_proof_v2_with_miner

source
pub fn load_proof_v2_with_miner<'a, 'info>(
    info: &'a AccountInfo<'info>,
    miner: &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 miner does not match the expected address.
  • Expected to be writable, but is not.