Skip to content

Commit

Permalink
Remove unused Semigroup and Monoid of UTxOHash
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed Jul 15, 2024
1 parent 09e94c1 commit 1adde59
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hydra-node/src/Hydra/Chain/Direct/Tx.hs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ type UTxOWithScript = (TxIn, TxOut CtxUTxO, HashableScriptData)

newtype UTxOHash = UTxOHash ByteString
deriving stock (Eq, Show, Generic)
deriving newtype (Semigroup, Monoid)

instance ToJSON UTxOHash where
toJSON (UTxOHash bytes) =
Expand Down Expand Up @@ -438,7 +437,6 @@ decrementTx scriptRegistry vk headId headParameters (headInput, headOutput) snap
emptyTxBody
& addInputs [(headInput, headWitness)]
& addReferenceInputs [headScriptRef]
-- NOTE: at this point 'utxoToDecommit' is populated
& addOutputs (headOutput' : map toTxContext decommitOutputs)
& addExtraRequiredSigners [verificationKeyHash vk]
& setTxMetadata (TxMetadataInEra $ mkHydraHeadV1TxName "DecrementTx")
Expand Down

0 comments on commit 1adde59

Please sign in to comment.