Skip to content

Commit 740a094

Browse files
Merge pull request #18 from ChanceBarimbao/originator/AuthfetchAndMethods
missed some orignators
2 parents fdc2ee2 + 2bb5849 commit 740a094

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bsv/message-box-client",
3-
"version": "1.2.8",
3+
"version": "1.2.9",
44
"publishConfig": {
55
"access": "public"
66
},

src/PeerPayClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ export class PeerPayClient extends MessageBoxClient {
338338
Logger.warn('[PP CLIENT] Warning: authFetch is undefined! Ensure PeerPayClient is initialized correctly.')
339339
}
340340
Logger.log('[PP CLIENT] authFetch instance:', this.authFetch)
341-
const response = await this.acknowledgeMessage({ messageIds: [payment.messageId] })
341+
const response = await this.acknowledgeMessage({ messageIds: [payment.messageId], originator: this.originator })
342342
Logger.log(`[PP CLIENT] Acknowledgment response: ${response}`)
343343
} catch (error: any) {
344344
if (
@@ -388,7 +388,7 @@ export class PeerPayClient extends MessageBoxClient {
388388
* @returns {Promise<IncomingPayment[]>} Resolves with an array of pending payments.
389389
*/
390390
async listIncomingPayments (overrideHost?: string): Promise<IncomingPayment[]> {
391-
const messages = await this.listMessages({ messageBox: STANDARD_PAYMENT_MESSAGEBOX, host: overrideHost })
391+
const messages = await this.listMessages({ messageBox: STANDARD_PAYMENT_MESSAGEBOX, host: overrideHost, originator: this.originator })
392392

393393
return messages.map((msg: any) => {
394394
const parsedToken = safeParse<PaymentToken>(msg.body)

0 commit comments

Comments
 (0)