Skip to content

Commit

Permalink
updated example
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrokonrad committed Oct 24, 2022
1 parent 5098192 commit 734a46b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/examples/matching_keyhash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ export async function redeemUtxo(): Promise<TxHash> {

const utxo = utxos.find((utxo) => utxo.datumHash === datumHash);

if (!utxo) throw new Error("UTxO not found.");

const tx = await lucid.newTx().collectFrom([utxo], redeemer)
.attachSpendingValidator(script)
.complete();
Expand Down

0 comments on commit 734a46b

Please sign in to comment.