update to sdk 036.1 / 0.37?

This commit is contained in:
Believethehype
2024-11-16 11:57:45 +01:00
parent 4c2a042e3b
commit 3cc7fd11a8
35 changed files with 165 additions and 152 deletions

View File

@@ -21,7 +21,7 @@ async def create_reaction(keys, title, dtag):
keys = Keys.parse(keys)
content = ""
event = EventBuilder(Kind(30030), content, [d_tag, title_tag] + emoji_tags).sign_with_keys(keys)
event = EventBuilder(Kind(30030), content).tags([d_tag, title_tag] + emoji_tags).sign_with_keys(keys)
client = Client(keys)
# We add the relays we defined above and told our DVM we would want to receive events to.
@@ -42,7 +42,7 @@ async def delete_reaction(keys, eid: str, dtag: str):
e_tag = Tag.parse(["e", eid])
a_tag = Tag.parse(
["a", "30030:" + keys.public_key().to_hex() + ":" + dtag])
event = EventBuilder(Kind(5), "", [e_tag, a_tag]).sign_with_keys(keys)
event = EventBuilder(Kind(5), "").tags([e_tag, a_tag]).sign_with_keys(keys)
client = Client(keys)
# We add the relays we defined above and told our DVM we would want to receive events to.