File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/Ledger/Dijkstra/Specification/Script Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -126,20 +126,19 @@ txInfo TxLevelSub utxo tx =
126126
127127txInfoForPurpose : (ℓ : 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:
133133txInfoForPurpose 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
You can’t perform that action at this time.
0 commit comments