From 528de32689dd7dd5f001187ad8c81a76b5c8aff1 Mon Sep 17 00:00:00 2001 From: Gigi Date: Fri, 17 Oct 2025 01:07:35 +0200 Subject: [PATCH] fix(bunker): wire NostrConnectSigner to RelayPool publish/subscription statics for NIP-46 responses --- src/App.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index b39477db..f1bbddcb 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -192,8 +192,10 @@ function App() { // Create relay pool and set it up BEFORE loading accounts // NostrConnectAccount.fromJSON needs this to restore the signer const pool = new RelayPool() - NostrConnectSigner.pool = pool - console.log('[bunker] ✅ Pool assigned to NostrConnectSigner (before account load)') + // Wire the signer to use this pool's publish/subscription methods (per applesauce examples) + NostrConnectSigner.subscriptionMethod = pool.subscription.bind(pool) + NostrConnectSigner.publishMethod = pool.publish.bind(pool) + console.log('[bunker] ✅ Wired NostrConnectSigner to RelayPool publish/subscription (before account load)') // Create a relay group for better event deduplication and management pool.group(RELAYS)