Remove unnecessary method

Signed-off-by: cybnon <stefan.weber93@googlemail.com>
This commit is contained in:
cybnon 2022-12-09 10:01:50 +01:00
parent f0c9b259cc
commit bd2d874a8c
2 changed files with 0 additions and 15 deletions

View File

@ -118,20 +118,6 @@ def get_asset(connection, asset_id) -> Asset:
raise NotImplementedError
@singledispatch
def get_assets_by_tx_id(connection, tx_id: str) -> list[Asset]:
"""Get assets by transaction id.
Args:
tx_id (str): the id of the transaction.
Returns:
The result of the operation.
"""
raise NotImplementedError
@singledispatch
def get_spent(connection, transaction_id, condition_id):
"""Check if a `txid` was already used as an input.

View File

@ -283,7 +283,6 @@ class Planetmint(object):
elif transactions:
tx_id = transactions[0].id
tx = backend.query.get_transaction_single(self.connection, tx_id)
tx.assets = backend.query.get_assets_by_tx_id(self.connection, tx_id)
transaction = tx.to_dict()
elif current_spent_transactions:
transaction = current_spent_transactions[0]