introduce Wallet.normalize_endpoint to remove code duplication

This commit is contained in:
Pavol Rusnak
2024-01-22 10:06:22 -06:00
parent 824a8fa7c8
commit 8eabf53642
12 changed files with 25 additions and 27 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ class ClicheWallet(Wallet):
if not settings.cliche_endpoint:
raise ValueError("cannot initialize ClicheWallet: missing cliche_endpoint")
self.endpoint = settings.cliche_endpoint
self.endpoint = self.normalize_endpoint(settings.cliche_endpoint)
async def status(self) -> StatusResponse:
try: