• Extracts a specific type of receipt from a list of receipts.

    Type Parameters

    • T = TransactionResultReceipt

    Parameters

    • receipts: TransactionResultReceipt[]

      The list of receipts to filter.

    • type: ReceiptType

      The type of receipt to filter for.

    Returns T[]

    The filtered list of receipts.