From 1f07a4993a493f178fa4a4bb7671aee1ff181031 Mon Sep 17 00:00:00 2001 From: philogicae Date: Wed, 14 Aug 2024 12:02:55 +0300 Subject: [PATCH] Fix wrong balance endpoint --- src/aleph/vm/orchestrator/payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aleph/vm/orchestrator/payment.py b/src/aleph/vm/orchestrator/payment.py index b93a90e45..65e642e01 100644 --- a/src/aleph/vm/orchestrator/payment.py +++ b/src/aleph/vm/orchestrator/payment.py @@ -29,7 +29,7 @@ async def fetch_balance_of_address(address: str) -> Decimal: """ async with aiohttp.ClientSession() as session: - url = f"{settings.API_SERVER}/api/v0/{address}/balance" + url = f"{settings.API_SERVER}/api/v0/addresses/{address}/balance" resp = await session.get(url) # Consider the balance as null if the address is not found