Skip to content

Commit 01290c3

Browse files
committed
clean up comments
1 parent f2f9003 commit 01290c3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Ledger/Dijkstra/Specification/Script/Validation.lagda.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,20 +126,19 @@ txInfo TxLevelSub utxo tx =
126126
127127
txInfoForPurpose : (ℓ : TxLevel) → UTxO → Tx ℓ → ScriptPurpose → TxInfo
128128
129+
-- subtransactions: never get subTx infos (even if the ScriptPurpose is Guard).
130+
txInfoForPurpose TxLevelSub utxo tx _ = txInfo TxLevelSub utxo tx
129131
130-
txInfoForPurpose TxLevelSub utxo tx sp = txInfo TxLevelSub utxo tx
131-
-- SubTx scripts never get subTx infos (even if their ScriptPurpose is Guard).
132-
132+
-- top-level transactions:
133133
txInfoForPurpose TxLevelTop utxo tx sp with sp
134-
-- Top-level scripts:
135-
-- · guard scripts see subTx infos
134+
-- · guard scripts see subTx infos
136135
... | Guard _ = record base { txInfoSubTxs = just subInfos }
137136
where
138137
base : TxInfo
139138
base = txInfo TxLevelTop utxo tx
140139
subInfos : List SubTxInfo
141140
subInfos = map (txInfo TxLevelSub utxo) (SubTransactionsOf tx)
142-
-- · other top-level scripts see no subTx infos
141+
-- · other top-level scripts see no subTx infos
143142
... | _ = txInfo TxLevelTop utxo tx
144143
```
145144

0 commit comments

Comments
 (0)