debug: verify subscriptionMethod and publishMethod on recreated signer

- Check if recreated NostrConnectSigner has methods needed for decrypt operations
- This will help identify if the issue is missing publishMethod for sending decrypt requests
- Or missing subscriptionMethod for receiving responses
This commit is contained in:
Gigi
2025-10-16 23:57:32 +02:00
parent f451348430
commit 38a014ef84

View File

@@ -287,6 +287,11 @@ 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 || []