mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 06:25:45 +00:00
Remove unnecessary method
Signed-off-by: cybnon <stefan.weber93@googlemail.com>
This commit is contained in:
parent
f0c9b259cc
commit
bd2d874a8c
@ -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.
|
||||
|
||||
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user