Skip to content

Commit

Permalink
Add head validator as single output for abort tx
Browse files Browse the repository at this point in the history
For some unknown reason this makes unit test pass even though the validator actually
does nothing but returns True
  • Loading branch information
abailly-iohk committed Oct 14, 2021
1 parent efb237b commit 4dfad05
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hydra-node/src/Hydra/Chain/Direct/Tx.hs
Expand Up @@ -138,7 +138,13 @@ abortTx (txIn, token, HeadParameters{contestationPeriod, parties}) initInputs =
TxBody
{ inputs = Set.fromList (txIn : map fst initInputs)
, collateral = mempty
, outputs = mempty
, outputs =
StrictSeq.fromList
[ TxOut
(scriptAddr headScript)
(inject $ Coin 0) -- TODO: This really needs to be passed as argument
(SJust headDatumHash)
]
, txcerts = mempty
, txwdrls = Wdrl mempty
, txfee = Coin 0
Expand Down

0 comments on commit 4dfad05

Please sign in to comment.