Skip to content

Commit

Permalink
Add minor comment to explain the mutation on contestationd deadline
Browse files Browse the repository at this point in the history
  • Loading branch information
ffakenz committed Feb 8, 2023
1 parent 88de16e commit fb3d937
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hydra-node/test/Hydra/Chain/Direct/Contract/Contest.hs
Expand Up @@ -273,6 +273,7 @@ genContestMutation
, SomeMutation (Just "must push deadline") MutateContestationDeadlineInTheClosedState . ChangeOutput 0 <$> do
let deadline =
case healthyClosedState of
-- We are replacing the contestationDeadline using the previous without pushing it
Head.Closed{contestationDeadline} -> contestationDeadline
_ -> error "not in a closed state"
pure $ changeHeadOutputDatum (replaceContestationDeadline deadline) headTxOut
Expand Down

0 comments on commit fb3d937

Please sign in to comment.