Skip to content

Commit

Permalink
ffi: fix nostr-sdk python examples
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Dec 1, 2023
1 parent 411b9ba commit 6d59334
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/nostr-sdk-ffi/bindings-python/examples/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
time.sleep(2.0)

print("Getting events from relays...")
filter = Filter().authors([keys.public_key().to_hex()])
filter = Filter().authors([keys.public_key()])
events = client.get_events_of([filter], timedelta(seconds=10))
for event in events:
print(event.as_json())
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# Get metadata
pk = PublicKey.from_bech32("npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet")
print(f"\nGetting profile metadata for {pk.to_bech32()}...")
filter = Filter().kind(0).author(pk.to_hex()).limit(1)
filter = Filter().kind(0).author(pk).limit(1)
events = client.get_events_of([filter], timedelta(seconds=10))
for event in events:
metadata = Metadata.from_json(event.content())
Expand Down

0 comments on commit 6d59334

Please sign in to comment.