diff --git a/planetmint/backend/query.py b/planetmint/backend/query.py index f1b79b7..827d23b 100644 --- a/planetmint/backend/query.py +++ b/planetmint/backend/query.py @@ -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. diff --git a/planetmint/lib.py b/planetmint/lib.py index 187a3f7..598b950 100644 --- a/planetmint/lib.py +++ b/planetmint/lib.py @@ -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]