File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ main = do
3939 runContract testWallet DebugContract. getUtxosThrowsEx
4040 >>= report
4141
42- putStrLn " Done. Debug awaiting - interrupt to exit" >> forever (waitSeconds 60 )
42+ liftIO $ putStrLn " Done. Debug awaiting - interrupt to exit" >> forever (waitSeconds 60 )
4343 where
4444 debugWallets ws = do
4545 cEnv <- ask
Original file line number Diff line number Diff line change @@ -8,8 +8,9 @@ module BotInterface.Setup (
88) where
99
1010import Data.Aeson (encodeFile )
11- import LocalCluster.Types (ClusterEnv (supportDir ))
11+ import LocalCluster.Types (ClusterEnv (supportDir ), nodeSocket )
1212import System.Directory (createDirectoryIfMissing , doesDirectoryExist )
13+ import System.Environment (setEnv )
1314import System.FilePath ((</>) )
1415import Tools.CardanoApi (queryProtocolParams )
1516
@@ -30,7 +31,10 @@ runSetup :: ClusterEnv -> IO ()
3031runSetup cEnv = do
3132 createRequiredDirs
3233 saveProtocolParams
34+ setSocketPathEnv
3335 where
36+ setSocketPathEnv =
37+ setEnv " CARDANO_NODE_SOCKET_PATH" (nodeSocketFile $ nodeSocket cEnv)
3438 createRequiredDirs =
3539 mapM_
3640 (createDirectoryIfMissing True . ($ cEnv))
You can’t perform that action at this time.
0 commit comments