From e5cda3509c1054fedde90bd4e9329879202b57eb Mon Sep 17 00:00:00 2001 From: "Nostr.Band" <124499563+nostrband@users.noreply.github.com> Date: Wed, 27 Mar 2024 11:25:16 +0100 Subject: [PATCH] Fix pubkey param to nip46 connect NIP46 requires remote_user_pubkey as first param to connect. --- nip46.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nip46.ts b/nip46.ts index e2aae1d..6a5449e 100644 --- a/nip46.ts +++ b/nip46.ts @@ -193,7 +193,7 @@ export class BunkerSigner { * Calls the "connect" method on the bunker. */ async connect(): Promise { - await this.sendRequest('connect', [getPublicKey(this.secretKey), this.bp.secret || '']) + await this.sendRequest('connect', [this.bp.pubkey, this.bp.secret || '']) } /**