Skip to content

Commit

Permalink
book: add (id) TypeScript examples
Browse files Browse the repository at this point in the history
- Minor correction to textNote example.
  • Loading branch information
RydalWater committed Jan 2, 2025
1 parent 00e2328 commit a7b4620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/snippets/js/src/event/id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7b4620

Please sign in to comment.