Update RewardCall.py

CLI_ADDR/currentRound returns a string now
This commit is contained in:
vires-in-numeris 2023-10-12 22:42:16 +02:00 committed by GitHub
parent 935d0fcefa
commit 87c6bd4cd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ def getCurrentRound(url):
return 0
if r.status_code != 200:
return 0
return int(r.content.hex(), 16)
return int(r.json())
class Orchestrator:
def __init__(self, uri):