Skip to content

Commit

Permalink
Fix precondition on decrement
Browse files Browse the repository at this point in the history
Used isProperSubsetOf instead of isSubsetOf due to its more laxed
  • Loading branch information
ffakenz committed May 24, 2024
1 parent 45cc7e4 commit 27ff627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydra-node/test/Hydra/Chain/Direct/TxTraceSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ instance StateModel Model where
Decrement{snapshot} ->
headState == Open
&& snapshotNumber snapshot > latestSnapshot
&& decommitUTxO snapshot `Set.isSubsetOf` utxoInHead
&& decommitUTxO snapshot `Set.isProperSubsetOf` utxoInHead
Close{snapshot} ->
headState == Open
&& if snapshotNumber snapshot == 0
Expand Down

0 comments on commit 27ff627

Please sign in to comment.