Converted asset to assets in websocket

This commit is contained in:
ArpitShukla007 2022-04-25 09:24:45 +00:00
parent 08e9a7660f
commit 20bce1f09b

View File

@ -52,8 +52,8 @@ def _multiprocessing_to_asyncio(in_queue, out_queue, loop):
# TODO: change for multi asset support
def eventify_block(block):
for tx in block['transactions']:
if tx.asset:
asset_id = tx.asset.get('id', tx.id)
if tx.assets:
asset_id = tx.assets[0].get('id', tx.id)
else:
asset_id = tx.id
yield {'height': block['height'],