From f9a048679f36b5c0f19dea293d675637c183eb48 Mon Sep 17 00:00:00 2001 From: Asai Toshiya Date: Mon, 11 Sep 2023 12:53:25 +0900 Subject: [PATCH] Improve example for finishEvent --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index e1f7497..dd5477e 100644 --- a/README.md +++ b/README.md @@ -90,13 +90,12 @@ sub.on('event', event => { let event = { kind: 1, - pubkey: pk, created_at: Math.floor(Date.now() / 1000), tags: [], content: 'hello world', } -// this calculates the event id and signs the event in a single step +// this assigns the pubkey, calculates the event id and signs the event in a single step const signedEvent = finishEvent(event, sk) await relay.publish(signedEvent)