mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 14:35:45 +00:00
replaced exception catching by version-management
Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
This commit is contained in:
parent
5734a29756
commit
425061a230
@ -146,11 +146,7 @@ class Planetmint(object):
|
||||
for tx in transactions:
|
||||
transaction = tx.tx_dict if tx.tx_dict else rapidjson.loads(rapidjson.dumps(tx.to_dict()))
|
||||
|
||||
try:
|
||||
tx_assets = transaction.pop("assets")
|
||||
except KeyError:
|
||||
tx_assets = transaction.pop("asset")
|
||||
|
||||
tx_assets = transaction.pop(Transaction.get_assets_tag(tx.version))
|
||||
metadata = transaction.pop("metadata")
|
||||
|
||||
tx_assets = backend.convert.prepare_asset(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user