Skip to content

Commit b2e3f8e

Browse files
committed
non-zero output index
1 parent a8d42b4 commit b2e3f8e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PeerPayClient.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export interface PaymentToken {
5959
}
6060
transaction: AtomicBEEF
6161
amount: number
62+
outputIndex?: number
6263
}
6364

6465
/**
@@ -68,6 +69,7 @@ export interface IncomingPayment {
6869
messageId: string
6970
sender: string
7071
token: PaymentToken
72+
outputIndex?: number
7173
}
7274

7375
/**
@@ -296,7 +298,7 @@ export class PeerPayClient extends MessageBoxClient {
296298
derivationSuffix: payment.token.customInstructions.derivationSuffix,
297299
senderIdentityKey: payment.sender
298300
},
299-
outputIndex: STANDARD_PAYMENT_OUTPUT_INDEX,
301+
outputIndex: payment.token.outputIndex ?? STANDARD_PAYMENT_OUTPUT_INDEX,
300302
protocol: 'wallet payment'
301303
}],
302304
labels: ['peerpay'],

0 commit comments

Comments
 (0)