From 55b612d3ab42285010d7674d7e7bd9e3773d5acb Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 5 Jan 2026 16:49:44 +0000 Subject: [PATCH] fix: provide relay pool to NostrConnectSigner for subscription/publish methods - Import relay pool singleton from services - Pass pool to NostrConnectSigner in both QR and manual modes - Fixes 'Missing subscriptionMethod' error when connecting to remote signer - Enables proper relay communication for NIP-46 connections --- src/components/LoginDialog.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/LoginDialog.tsx b/src/components/LoginDialog.tsx index 533e0b2..d051ed3 100644 --- a/src/components/LoginDialog.tsx +++ b/src/components/LoginDialog.tsx @@ -12,6 +12,7 @@ import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import accountManager from "@/services/accounts"; +import pool from "@/services/relay-pool"; import { ExtensionSigner, NostrConnectSigner, PrivateKeySigner } from "applesauce-signers"; import { ExtensionAccount, NostrConnectAccount } from "applesauce-accounts/accounts"; import { createAccountFromInput } from "@/lib/login-parser"; @@ -48,6 +49,7 @@ export default function LoginDialog({ open, onOpenChange }: LoginDialogProps) { "wss://relay.damus.io", "wss://nos.lol", ], + pool, }); await signer.open(); @@ -169,7 +171,7 @@ export default function LoginDialog({ open, onOpenChange }: LoginDialogProps) { setLoading(true); try { - const signer = await NostrConnectSigner.fromBunkerURI(bunkerInput); + const signer = await NostrConnectSigner.fromBunkerURI(bunkerInput, { pool }); await signer.open(); const pubkey = await signer.getPublicKey(); const account = new NostrConnectAccount(pubkey, signer);