adapt to sdk

This commit is contained in:
Believethehype
2024-11-19 10:19:06 +01:00
parent 4017571955
commit b0994998ba
19 changed files with 60 additions and 60 deletions

View File

@@ -23,7 +23,7 @@ async def create_reaction(keys, title, dtag):
content = ""
event = EventBuilder(Kind(30030), content).tags([d_tag, title_tag] + emoji_tags).sign_with_keys(keys)
client = Client(keys)
client = Client(NostrSigner.keys(keys))
# We add the relays we defined above and told our DVM we would want to receive events to.
for relay in DVMConfig().RELAY_LIST:
await client.add_relay(relay)
@@ -44,7 +44,7 @@ async def delete_reaction(keys, eid: str, dtag: str):
["a", "30030:" + keys.public_key().to_hex() + ":" + dtag])
event = EventBuilder(Kind(5), "").tags([e_tag, a_tag]).sign_with_keys(keys)
client = Client(keys)
client = Client(NostrSigner.keys(keys))
# We add the relays we defined above and told our DVM we would want to receive events to.
for relay in DVMConfig().RELAY_LIST:
await client.add_relay(relay)