diff --git a/package-lock.json b/package-lock.json index 2dc2dbf..79793f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@bsv/message-box-client", - "version": "1.4.2", + "version": "1.4.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@bsv/message-box-client", - "version": "1.4.2", + "version": "1.4.3", "license": "SEE LICENSE IN LICENSE.txt", "dependencies": { "@bsv/authsocket-client": "^1.0.12", diff --git a/package.json b/package.json index 9903ceb..fd3ec04 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bsv/message-box-client", - "version": "1.4.2", + "version": "1.4.3", "publishConfig": { "access": "public" }, diff --git a/src/PeerPayClient.ts b/src/PeerPayClient.ts index 0d43891..2e56adc 100644 --- a/src/PeerPayClient.ts +++ b/src/PeerPayClient.ts @@ -59,6 +59,7 @@ export interface PaymentToken { } transaction: AtomicBEEF amount: number + outputIndex?: number } /** @@ -68,6 +69,7 @@ export interface IncomingPayment { messageId: string sender: string token: PaymentToken + outputIndex?: number } /** @@ -296,7 +298,7 @@ export class PeerPayClient extends MessageBoxClient { derivationSuffix: payment.token.customInstructions.derivationSuffix, senderIdentityKey: payment.sender }, - outputIndex: STANDARD_PAYMENT_OUTPUT_INDEX, + outputIndex: payment.token.outputIndex ?? STANDARD_PAYMENT_OUTPUT_INDEX, protocol: 'wallet payment' }], labels: ['peerpay'],