Function mpl_auction_house::receipt::print_purchase_receipt
source · [−]pub fn print_purchase_receipt<'info>(
ctx: Context<'_, '_, '_, 'info, PrintPurchaseReceipt<'info>>,
purchase_receipt_bump: u8
) -> Result<()>
Expand description
Create a Purchase Receipt account at a PDA with the seeds: “listing_receipt”, <SELLER_TRADE_STATE_PUBKEY>, <BUYER_TRADE_STATE_PUBKEY>.
The previous instruction is checked to ensure that it is a “Purchase” type to match the receipt type being created. Passing in an empty account results in the PDA being created; an existing account will be written over.