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
This commit is contained in:
Gigi
2025-10-16 23:46:25 +02:00
parent 63626fae3a
commit d8d7a19fa1

View File

@@ -46,7 +46,8 @@ export async function createHighlight(
} }
// Create EventFactory with the account as signer // 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 blueprintSource: NostrEvent | AddressPointer | string
let context: string | undefined let context: string | undefined