upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/25.md
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2022-10-30 08:34:14 -0700
committerWilliam Casarin <jb55@jb55.com>2022-10-30 08:34:14 -0700
commitb8b5e3aa4060f60a8dd235e558cca7597b21b33b (patch)
tree35867686f64ca436cfc4ff263624a9994fc02ef1 /25.md
parent6ba2fc3338a45082b08f3529ef62acf617ee3c69 (diff)
nip25: fix code example
content should not be blank
Diffstat (limited to '25.md')
-rw-r--r--25.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/25.md b/25.md
index d406a69..486ef5f 100644
--- a/25.md
+++ b/25.md
@@ -42,7 +42,7 @@ func make_like_event(pubkey: String, privkey: String, liked: NostrEvent) -> Nost
42 } 42 }
43 tags.append(["e", liked.id]) 43 tags.append(["e", liked.id])
44 tags.append(["p", liked.pubkey]) 44 tags.append(["p", liked.pubkey])
45 let ev = NostrEvent(content: "", pubkey: pubkey, kind: 7, tags: tags) 45 let ev = NostrEvent(content: "+", pubkey: pubkey, kind: 7, tags: tags)
46 ev.calculate_id() 46 ev.calculate_id()
47 ev.sign(privkey: privkey) 47 ev.sign(privkey: privkey)
48 return ev 48 return ev