From bd2d874a8c745c6427498314555e77f2a90286d0 Mon Sep 17 00:00:00 2001 From: cybnon Date: Fri, 9 Dec 2022 10:01:50 +0100 Subject: [PATCH] Remove unnecessary method Signed-off-by: cybnon --- planetmint/backend/query.py | 14 -------------- planetmint/lib.py | 1 - 2 files changed, 15 deletions(-) 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]