Skip to content

Commit

Permalink
Handle the case of multiple UTxO for same key
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly committed Sep 28, 2022
1 parent 322d42a commit 0730400
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions hydra-node/test/Hydra/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,7 @@ instance StateModel WorldState where
precondition WorldState{hydraState = Initial{}} Abort{} =
True
precondition WorldState{hydraState = Open{offChainState}} (NewTx _ tx) =
case List.lookup (from tx) (confirmedUTxO offChainState) of
Just v -> v == value tx
Nothing -> False
(from tx, value tx) `List.elem` confirmedUTxO offChainState
precondition WorldState{hydraState = Open{}} Stop =
True
precondition _ Wait{} =
Expand Down

0 comments on commit 0730400

Please sign in to comment.