From 7d33c3c024b370bca1de9171e739b045a0aa9457 Mon Sep 17 00:00:00 2001 From: Gigi Date: Thu, 16 Oct 2025 23:59:14 +0200 Subject: [PATCH] fix: add bunker relays to pool BEFORE recreating signer - Bunker relays must be in pool when signer sets up publishMethod/subscriptionMethod - Previously added after signer recreation, leaving pool incomplete - This should fix decrypt operations that rely on publishMethod being set up correctly - Same fix pattern as we used for signing --- src/App.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index b363f022..d585e9c9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -287,11 +287,6 @@ function App() { // Replace the signer on the account nostrConnectAccount.signer = recreatedSigner console.log('[bunker] ✅ Signer recreated with pool context') - console.log("[bunker] Signer methods check:", { - hasSubscriptionMethod: !!(recreatedSigner as any).subscriptionMethod, - hasPublishMethod: !!(recreatedSigner as any).publishMethod, - hasMakeRequest: typeof (recreatedSigner as any).makeRequest === "function" - }) // Add bunker's relays to the pool so signing requests can be sent/received const bunkerRelays = nostrConnectAccount.signer.relays || []