Skip to content

Commit 1209f8d

Browse files
committed
Include utxo with datum and script in utxo selection
A utxo with datum and script attached isn't necessarily unspendable.
1 parent a1c840b commit 1209f8d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pycardano/txbuilder.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -993,9 +993,8 @@ def build(
993993
if (
994994
utxo not in selected_utxos
995995
and utxo not in self.excluded_inputs
996-
and not utxo.output.datum_hash # UTxO with datum should be added by using `add_script_input`
997-
and not utxo.output.datum
998-
and not utxo.output.script
996+
and not utxo.output.datum_hash # UTxO with datum hash should be added by using
997+
# `add_script_input`
999998
):
1000999
additional_utxo_pool.append(utxo)
10011000
additional_amount += utxo.output.amount

0 commit comments

Comments
 (0)