Skip to content

Commit dd8aae4

Browse files
committed
Add auxiliary function to get script from TxOut
1 parent eeacbfd commit dd8aae4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Ledger/Dijkstra/Specification/Transaction.lagda.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@ could be either of them.
365365
366366
txinsScript : ℙ TxIn → UTxO → ℙ TxIn
367367
txinsScript txins utxo = txins ∩ dom (proj₁ (scriptOuts utxo))
368+
369+
txOutToScript : TxOut → Maybe Script
370+
txOutToScript (_ , _ , _ , s) = s
371+
368372
```
369373

370374
In the Dijkstra era, *spending* inputs must exist in the initial UTxO snapshot, while

0 commit comments

Comments
 (0)