mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 06:55:45 +00:00
issue with transaction hash
This commit is contained in:
parent
f498415657
commit
89b63920a6
@ -169,7 +169,7 @@ def store_asset(connection, asset: dict, tx_id=None, is_data=False): # TODO con
|
||||
else:
|
||||
space.insert((str(asset["id"]), asset["data"]))
|
||||
except: # TODO Add Raise For Duplicate
|
||||
pass
|
||||
print("DUPLICATE ERROR")
|
||||
|
||||
|
||||
@register_query(TarantoolDB)
|
||||
@ -179,7 +179,7 @@ def store_assets(connection, assets: list):
|
||||
try:
|
||||
space.insert((asset["id"], asset["data"]))
|
||||
except: # TODO Raise ERROR for Duplicate
|
||||
pass
|
||||
print("DUPLICATE ERROR (" + asset["id"] + ") " + str(asset["data"]))
|
||||
|
||||
|
||||
@register_query(TarantoolDB)
|
||||
|
||||
@ -1356,6 +1356,7 @@ class TransactionPrepare:
|
||||
_asset = self._transaction.get("asset")
|
||||
if _asset is None:
|
||||
self._tuple_transaction["asset"] = ""
|
||||
return
|
||||
|
||||
_id = _asset.get("id")
|
||||
data = _asset.get("data")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user