From 036654b6ca4162b7ec3f655bc3550eb74b062cd0 Mon Sep 17 00:00:00 2001
From: callebtc <93376500+callebtc@users.noreply.github.com>
Date: Mon, 29 Jul 2024 15:18:15 +0200
Subject: [PATCH] strip URL

---
 cashu/wallet/wallet.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cashu/wallet/wallet.py b/cashu/wallet/wallet.py
index ae303e73..30bb878f 100644
--- a/cashu/wallet/wallet.py
+++ b/cashu/wallet/wallet.py
@@ -107,7 +107,7 @@ def __init__(self, url: str, db: str, name: str = "no_name", unit: str = "sat"):
         self.proofs: List[Proof] = []
         self.name = name
         self.unit = Unit[unit]
-
+        url = url.rstrip("/")
         super().__init__(url=url, db=self.db)
         logger.debug("Wallet initialized")
         logger.debug(f"Mint URL: {url}")