From 619f601cd4d1e6eefa41ce671db094078d0179a3 Mon Sep 17 00:00:00 2001 From: Shroominic Date: Thu, 4 Sep 2025 17:05:23 +0100 Subject: [PATCH] mint_url -> mint_urls --- routstr/discovery.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routstr/discovery.py b/routstr/discovery.py index 521af1d4..798c1756 100644 --- a/routstr/discovery.py +++ b/routstr/discovery.py @@ -126,7 +126,7 @@ def parse_provider_announcement(event: dict[str, Any]) -> dict[str, Any] | None: # Extract optional tags description = None - mint_url = None + mint_urls = [] version = None # Parse NIP-91 format @@ -138,7 +138,7 @@ def parse_provider_announcement(event: dict[str, Any]) -> dict[str, Any] | None: elif tag[0] == "u": endpoint_urls.append(tag[1]) elif tag[0] == "mint": - mint_url = tag[1] + mint_urls.append(tag[1]) elif tag[0] == "version": version = tag[1] @@ -178,7 +178,7 @@ def parse_provider_announcement(event: dict[str, Any]) -> dict[str, Any] | None: "endpoint_urls": endpoint_urls, # All URLs for NIP-91 "name": provider_name, "description": description, - "mint_url": mint_url, + "mint_urls": mint_urls, "version": version, "content": event.get("content", ""), }