From a7b46209bd994742c192a6a191811bbc0c813877 Mon Sep 17 00:00:00 2001 From: Mynima <62206239+RydalWater@users.noreply.github.com> Date: Thu, 2 Jan 2025 19:45:34 +0000 Subject: [PATCH] book: add (id) TypeScript examples - Minor correction to textNote example. --- book/snippets/js/src/event/id.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/snippets/js/src/event/id.ts b/book/snippets/js/src/event/id.ts index e92874da2..8dd8fa38c 100644 --- a/book/snippets/js/src/event/id.ts +++ b/book/snippets/js/src/event/id.ts @@ -54,7 +54,7 @@ export function eventID() { // ANCHOR: access-verify // Event ID from Event & Verfiy console.log(" Event ID from Event:"); - let event = EventBuilder.textNote("This is a note", []).signWithKeys(keys); + let event = EventBuilder.textNote("This is a note").signWithKeys(keys); console.log(` - Event ID: ${event.id.toBech32()}`); console.log(` - Verify the ID & Signature: ${event.verify()}`); // ANCHOR_END: access-verify