From d8d7a19fa17549fa3a852b9ac452f52cfe93278e Mon Sep 17 00:00:00 2001 From: Gigi Date: Thu, 16 Oct 2025 23:46:25 +0200 Subject: [PATCH] fix: pass account.signer to EventFactory instead of full account - EventFactory expects an EventSigner interface with signEvent method - account.signer is the actual NostrConnectSigner instance - Add debug logging to trace signer type - This should fix signing hanging when using bunker --- src/services/highlightCreationService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/highlightCreationService.ts b/src/services/highlightCreationService.ts index b9cb7960..c7d333d6 100644 --- a/src/services/highlightCreationService.ts +++ b/src/services/highlightCreationService.ts @@ -46,7 +46,8 @@ export async function createHighlight( } // Create EventFactory with the account as signer - const factory = new EventFactory({ signer: account }) + console.log("[bunker] Creating EventFactory with signer:", { signerType: account.signer?.constructor?.name }) + const factory = new EventFactory({ signer: account.signer }) let blueprintSource: NostrEvent | AddressPointer | string let context: string | undefined