mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 06:25:45 +00:00
fixed some more test cases
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
8a254f4640
commit
ac9fab39a5
@ -71,8 +71,8 @@ def store_transactions(connection, signed_transactions: list):
|
||||
if txtuples["metadata"] is not None:
|
||||
connection.run(connection.space("meta_data").insert(txtuples["metadata"]), only_data=False)
|
||||
|
||||
if txtuples["asset"] is not None:
|
||||
connection.run(connection.space("assets").insert(txtuples["asset"]), only_data=False)
|
||||
if txtuples["assets"] is not None:
|
||||
connection.run(connection.space("assets").insert(txtuples["assets"]), only_data=False)
|
||||
|
||||
if txtuples["script"] is not None:
|
||||
connection.run(connection.space("scripts").insert(txtuples["script"]), only_data=False)
|
||||
|
||||
@ -43,7 +43,7 @@ class TransactionDecompose:
|
||||
"keys": [],
|
||||
"script": None,
|
||||
"metadata": None,
|
||||
"asset": None,
|
||||
"assets": None,
|
||||
}
|
||||
|
||||
def get_map(self, dictionary: dict = None):
|
||||
@ -68,7 +68,7 @@ class TransactionDecompose:
|
||||
_asset = self._transaction.get("assets")
|
||||
if _asset is None:
|
||||
return
|
||||
asset_id = _asset["id"] if _asset.get("id") is not None else self._transaction["id"]
|
||||
asset_id = _asset[0]["id"] if _asset[0].get("id") is not None else self._transaction["id"]
|
||||
self._tuple_transaction["assets"] = (json.dumps(_asset), self._transaction["id"], asset_id)
|
||||
|
||||
def __prepare_inputs(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user