Compare commits

...

1 Commits

Author SHA1 Message Date
nolash
1ddaea8acb
Use leaf instead of collect in balance retrieve from api 2021-04-12 13:10:57 +02:00

View File

@ -241,9 +241,7 @@ class TrafficProvisioner:
#callback_queue=queue, #callback_queue=queue,
) )
t = api.balance(account, token.symbol()) t = api.balance(account, token.symbol())
r = t.get() r = t.get_leaf()
for c in t.collect():
r = c[1]
assert t.successful() assert t.successful()
#return r[0]['balance_network'] - r[0]['balance_outgoing'] #return r[0]['balance_network'] - r[0]['balance_outgoing']
return r[0] return r[0]