We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37e70c5 commit 5e4f6faCopy full SHA for 5e4f6fa
src/aleph/vm/orchestrator/payment.py
@@ -40,8 +40,12 @@ async def get_address_balance(address: str) -> dict:
40
41
# Raise an error if the request failed
42
resp.raise_for_status()
43
+ ret = await resp.json()
44
+ if not isinstance(ret, dict):
45
+ msg = f"get_address_blaance: Invalid response received from {url}, should be dict"
46
+ raise Exception(msg)
47
- return await resp.json()
48
+ return ret
49
50
51
async def fetch_balance_of_address(address: str) -> Decimal:
0 commit comments