Skip to content

Commit

Permalink
Quickfix for the network tests to use the correct format for the publ…
Browse files Browse the repository at this point in the history
…ished script addresses
  • Loading branch information
noonio committed Jan 13, 2025
1 parent e7252f8 commit 52db713
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hydra-node/exe/hydra-node/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

module Main where

import Hydra.Prelude hiding (fromList)
import Hydra.Prelude hiding (fromList, intercalate)

import Data.ByteString (intercalate)
import Hydra.Cardano.Api (
serialiseToRawBytesHex,
)
Expand Down Expand Up @@ -34,7 +35,7 @@ main = do
(_, sk) <- readKeyPair (publishSigningKey opts)
let PublishOptions{publishNetworkId = networkId, publishNodeSocket} = opts
txIds <- publishHydraScripts networkId publishNodeSocket sk
mapM_ putBSLn (serialiseToRawBytesHex <$> txIds)
putBSLn $ intercalate "," (serialiseToRawBytesHex <$> txIds)

identifyNode :: RunOptions -> RunOptions
identifyNode opt@RunOptions{verbosity = Verbose "HydraNode", nodeId} = opt{verbosity = Verbose $ "HydraNode-" <> show nodeId}
Expand Down
1 change: 1 addition & 0 deletions hydra-node/hydra-node.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ executable hydra-node
hs-source-dirs: exe/hydra-node
main-is: Main.hs
build-depends:
, bytestring
, hydra-cardano-api
, hydra-node
, hydra-prelude
Expand Down

0 comments on commit 52db713

Please sign in to comment.