Skip to content

Commit a8c8480

Browse files
committed
fix keys iteration
1 parent 091d986 commit a8c8480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cadence/contracts/FlowALPModels.cdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ access(all) contract FlowALPModels {
553553
effectiveDebt: {Type: UFix128}
554554
) {
555555
// Enforce single balance per token invariant: if a type appears in one map, it must not appear in the other.
556-
for collateralType in effectiveCollateral {
556+
for collateralType in effectiveCollateral.keys {
557557
assert(effectiveDebt[collateralType] == nil, message: "cannot construct BalanceSheet: observed both credit and debit balance for \(collateralType.identifier)")
558558
}
559559

0 commit comments

Comments
 (0)