@bsv/message-box-client 1.4.2 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsv/message-box-client",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -59,6 +59,7 @@ export interface PaymentToken {
59
59
  }
60
60
  transaction: AtomicBEEF
61
61
  amount: number
62
+ outputIndex?: number
62
63
  }
63
64
 
64
65
  /**
@@ -68,6 +69,7 @@ export interface IncomingPayment {
68
69
  messageId: string
69
70
  sender: string
70
71
  token: PaymentToken
72
+ outputIndex?: number
71
73
  }
72
74
 
73
75
  /**
@@ -296,7 +298,7 @@ export class PeerPayClient extends MessageBoxClient {
296
298
  derivationSuffix: payment.token.customInstructions.derivationSuffix,
297
299
  senderIdentityKey: payment.sender
298
300
  },
299
- outputIndex: STANDARD_PAYMENT_OUTPUT_INDEX,
301
+ outputIndex: payment.token.outputIndex ?? STANDARD_PAYMENT_OUTPUT_INDEX,
300
302
  protocol: 'wallet payment'
301
303
  }],
302
304
  labels: ['peerpay'],