Skip to content

Commit

Permalink
Use record syntax in constructing HeadClosed
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed Jul 28, 2023
1 parent 6214abb commit 5281614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydra-node/src/Hydra/HeadLogic.hs
Expand Up @@ -578,7 +578,7 @@ onOpenChainCloseTx ::
UTCTime ->
Outcome tx
onOpenChainCloseTx openState newChainState closedSnapshotNumber contestationDeadline =
StateChanged (HeadClosed newChainState contestationDeadline)
StateChanged HeadClosed{chainState = newChainState, contestationDeadline}
<> Effects
( notifyClient
: [ OnChainEffect
Expand Down

0 comments on commit 5281614

Please sign in to comment.