From 04ae70873a9be99aa7964285260b17579975b794 Mon Sep 17 00:00:00 2001 From: Gigi Date: Thu, 16 Oct 2025 23:18:37 +0200 Subject: [PATCH] fix: restore direct pool bindings for NIP-46 methods - Revert logging wrappers around subscription/publish - Use pool.subscription.bind(pool) and pool.publish.bind(pool) - Avoid any side effects interfering with signer requests --- src/App.tsx | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 825982bd..a39f8a6e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -194,21 +194,8 @@ function App() { const pool = new RelayPool() // Setup NostrConnectSigner to use the pool's methods (per applesauce examples) - // Wrap with [bunker] logs for debugging NIP-46 traffic - NostrConnectSigner.subscriptionMethod = (relays, filters) => { - console.log('[bunker] NIP-46 subscribe', { relays, filters }) - return pool.subscription(relays, filters) - } - NostrConnectSigner.publishMethod = (relays, event) => { - try { - const size = JSON.stringify(event).length - console.log('[bunker] NIP-46 publish', { relays, kind: event.kind, size }) - } catch {} - return pool.publish(relays, event).then((resp) => { - console.log('[bunker] NIP-46 publish responses', resp) - return resp - }) - } + NostrConnectSigner.subscriptionMethod = pool.subscription.bind(pool) + NostrConnectSigner.publishMethod = pool.publish.bind(pool) pool.group(RELAYS)