mirror of
https://github.com/dergigi/boris.git
synced 2026-01-03 23:14:36 +01:00
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:
@@ -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 || []
|
||||
|
||||
Reference in New Issue
Block a user