BitcoinVeneto 668e62af91 Update nostr.py
Fix: Update add_relays() to add_relay() in nostr.py
Description
This PR fixes an issue , the method add_relays() was renamed to add_relay() and now accepts a single string instead of a list.

Error Message

AttributeError: 'Client' object has no attribute 'add_relays'. Did you mean: 'add_relay'?
After changing the code to use add_relay(), another error occurred:


The error occurred because the updated add_relay() method expects a string but was passed a list. This was due to the previous usage of add_relays() which accepted a list of URLs.


await client.add_relays(["ws://localhost:7777"])
To:
await client.add_relay("ws://localhost:7777")
2025-02-23 12:08:54 +01:00
..
2024-08-22 10:32:02 +02:00
2024-10-01 19:35:57 +00:00
2025-02-23 12:08:54 +01:00
2024-08-22 10:32:02 +02:00
2024-07-09 21:50:48 +02:00
2024-10-01 19:35:57 +00:00
2024-07-09 21:39:15 +02:00