Skip to content

Commit 4df6d32

Browse files
authored
Merge pull request #125 from nspcc-dev/124-update-script-parameters
2 parents 648e2dc + 5da3aaf commit 4df6d32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

get_webstat_metrics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ async def check_epoch(output, net, rpc_host, netmap_hash):
3939
contract_hash = types.UInt160.from_string(netmap_hash)
4040
contract = GenericContract(contract_hash)
4141
result = await facade.test_invoke(contract.call_function("lastEpochBlock"))
42-
last_epoch_block = unwrap.as_int(result)
42+
last_epoch_block = int(result.result.stack[0].value)
4343
result = await facade.test_invoke(contract.call_function("config", ['EpochDuration']))
44-
epoch_duration = int.from_bytes(unwrap.as_bytes(result)[:2], "little")
44+
epoch_duration = int.from_bytes(bytes(result.result.stack[0].value)[:2], "little")
4545

4646
response_getblockheader = requests.post(rpc_host, data=json.dumps({
4747
"jsonrpc": "2.0",

0 commit comments

Comments
 (0)