diff --git a/bindings/nostr-sdk-ffi/bindings-python/examples/client.py b/bindings/nostr-sdk-ffi/bindings-python/examples/client.py index 5e7d01c63..38c9a5c79 100644 --- a/bindings/nostr-sdk-ffi/bindings-python/examples/client.py +++ b/bindings/nostr-sdk-ffi/bindings-python/examples/client.py @@ -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()) diff --git a/bindings/nostr-sdk-ffi/bindings-python/examples/metadata.py b/bindings/nostr-sdk-ffi/bindings-python/examples/metadata.py index 829acdb5c..3f02419df 100644 --- a/bindings/nostr-sdk-ffi/bindings-python/examples/metadata.py +++ b/bindings/nostr-sdk-ffi/bindings-python/examples/metadata.py @@ -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())