fix transactions call

This commit is contained in:
William Luke 2021-11-12 12:41:57 +03:00
parent 59c8895db5
commit fae434465d

View File

@ -122,8 +122,8 @@ def list_transactions(address, limit=10): # noqa: E501
chain_spec, chain_spec,
queue=celery_queue, queue=celery_queue,
) )
task = api.list(address=address, limit=limit) data = call('list', address, limit)
data = task.get() # data = task.get()
return data return data
@ -183,3 +183,6 @@ def transfer_from(from_address, to_address, value, token_symbol, spender_address
log.debug(f"transfer {t.get_leaf()}") log.debug(f"transfer {t.get_leaf()}")
log.debug(f"transfer {t.successful()}") log.debug(f"transfer {t.successful()}")
return t.get() return t.get()