Skip to content

Commit 510f2bf

Browse files
committed
Minor fix fortytwo example
1 parent 10d1a30 commit 510f2bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/plutus/forty_two/forty_two.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def submit_tx(tx):
4747

4848
def find_collateral(target_address):
4949
for utxo in chain_context.utxos(str(target_address)):
50-
if isinstance(utxo.output.amount, int):
50+
# A collateral should contain no multi asset
51+
if not utxo.output.amount.multi_asset:
5152
return utxo
5253
return None
5354

0 commit comments

Comments
 (0)