From f899159fa2579ee0c461d1d97f5f7d14740ff315 Mon Sep 17 00:00:00 2001 From: carlhammann <102371507+carlhammann@users.noreply.github.com> Date: Wed, 10 Jan 2024 16:01:04 +0100 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Clément Hurlin Reintroduce accidentally deleted cpp --- .../src/Cardano/CLI/EraBased/Options/Governance/Hash.hs | 4 ++-- .../test/cardano-cli-golden/Test/Golden/Governance/DRep.hs | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Hash.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Hash.hs index 530f1a1447..35e1d13824 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Hash.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Governance/Hash.hs @@ -41,7 +41,7 @@ pGovernanceHashAnchorDataCmd era = do (Cmd.GovernanceHashAnchorDataCmdArgs eon <$> pGovernanceAnchorDataHashSource <*> optional pOutputFile)) - $ Opt.progDesc "Compute the hash of some anchor data." + $ Opt.progDesc "Compute the hash of some anchor data (to then pass it to other governance commands)." pGovernanceAnchorDataHashSource :: Parser Cmd.GovernanceAnchorDataHashSource pGovernanceAnchorDataHashSource = @@ -73,4 +73,4 @@ pGovernanceHashScriptCmd era = do (Cmd.GovernanceHashScriptCmdArgs eon <$> pScript <*> optional pOutputFile)) - $ Opt.progDesc "Compute the hash of a script." + $ Opt.progDesc "Compute the hash of a script (to then pass it to other governance commands)." diff --git a/cardano-cli/test/cardano-cli-golden/Test/Golden/Governance/DRep.hs b/cardano-cli/test/cardano-cli-golden/Test/Golden/Governance/DRep.hs index 5a6347a6c5..40947e1b55 100644 --- a/cardano-cli/test/cardano-cli-golden/Test/Golden/Governance/DRep.hs +++ b/cardano-cli/test/cardano-cli-golden/Test/Golden/Governance/DRep.hs @@ -8,10 +8,13 @@ module Test.Golden.Governance.DRep where #endif import Control.Monad + +#ifdef UNIX import Data.Bits ((.&.)) import GHC.Stack (withFrozenCallStack) import Numeric (showOct) import System.Posix.Files (fileMode, getFileStatus) +#endif import Test.Cardano.CLI.Util (execCardanoCLI, noteInputFile, noteTempFile, propertyOnce)