pub fn print_listing_receipt<'info>(
    ctx: Context<'_, '_, '_, 'info, PrintListingReceipt<'info>>,
    receipt_bump: u8
) -> Result<()>
Expand description

Create a Listing Receipt account at a PDA with the seeds: “listing_receipt”, <SELLER_TRADE_STATE_PUBKEY>.

The previous instruction is checked to ensure that it is a “Listing” 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.