Skip to content

Commit 2dbea3f

Browse files
committed
correct code comment
1 parent ae423c8 commit 2dbea3f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,11 +494,8 @@ remaining helper functions of this section.
494494
-- Phase-1 condition (CIP-0118):
495495
-- every credential required by a subTx body must appear in the top-level txGuards set.
496496
requiredTopLevelGuardsSatisfied : TopLevelTx → List SubLevelTx → Type
497-
requiredTopLevelGuardsSatisfied topTx subTxs = requiredCreds ⊆ topGuards
497+
requiredTopLevelGuardsSatisfied topTx subTxs = requiredCreds ⊆ TxBody.txGuards (TxBodyOf topTx)
498498
where
499-
topGuards : ℙ Credential
500-
topGuards = TxBody.txGuards (TxBodyOf topTx)
501-
502499
concatMapˡ : {A B : Type} → (A → ℙ B) → List A → ℙ B
503500
concatMapˡ f as = proj₁ $ unions (fromList (map f as))
504501
-- (maybe move concatMapˡ to src-lib-exts or agda-sets)

0 commit comments

Comments
 (0)