From e85f79c50357c1dea3a536391f13a5b96220c9bb Mon Sep 17 00:00:00 2001 From: im-adithya Date: Fri, 13 Dec 2024 16:52:33 +0530 Subject: [PATCH] fix: use version in subscriptions --- src/NWCClient.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/NWCClient.ts b/src/NWCClient.ts index 622aaea..80ed94a 100644 --- a/src/NWCClient.ts +++ b/src/NWCClient.ts @@ -742,11 +742,13 @@ export class NWCClient { while (subscribed) { try { await this._checkConnected(); - + await this._checkCompatibility(); sub = this.relay.subscribe( [ { - kinds: [...(this.supportedVersion ? [23196] : [23197])], + kinds: [ + ...(this.supportedVersion === "0.0" ? [23196] : [23197]), + ], authors: [this.walletPubkey], "#p": [this.publicKey], },