Skip to content

Commit

Permalink
Small semantic cleanup so modifications are all contained
Browse files Browse the repository at this point in the history
  • Loading branch information
noonio committed Oct 17, 2024
1 parent d55c4ef commit c383d7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydra-tx/src/Hydra/Tx/Commit.hs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ commitTx networkId scriptRegistry headId party commitBlueprintTx (initialInput,
toLedgerTx blueprintTx
& spendFromInitial
& bodyTxL . outputsTxBodyL .~ StrictSeq.singleton (toLedgerTxOut commitOutput)
& bodyTxL . reqSignerHashesTxBodyL <>~ Set.singleton (toLedgerKeyHash vkh)
& bodyTxL . mintTxBodyL .~ mempty
& addMetadata (mkHydraHeadV1TxName "CommitTx") blueprintTx
where
Expand All @@ -76,6 +75,7 @@ commitTx networkId scriptRegistry headId party commitBlueprintTx (initialInput,
in tx
& bodyTxL . inputsTxBodyL .~ newInputs
& bodyTxL . referenceInputsTxBodyL <>~ Set.singleton (toLedgerTxIn initialScriptRef)
& bodyTxL . reqSignerHashesTxBodyL <>~ Set.singleton (toLedgerKeyHash vkh)
& witsTxL . rdmrsTxWitsL
.~ Redeemers (fromList $ nonSpendingRedeemers tx)
<> Redeemers (fromList $ mkRedeemers newRedeemers newInputs)
Expand Down

0 comments on commit c383d7b

Please sign in to comment.