mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 14:35:45 +00:00
Converted asset to assets in websocket
This commit is contained in:
parent
08e9a7660f
commit
20bce1f09b
@ -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'],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user