Skip to content

Commit 78f05e0

Browse files
committed
Add comment to checkGovActionHashes
1 parent 5784d62 commit 78f05e0

File tree

1 file changed

+2
-1
lines changed
  • cardano-cli/src/Cardano/CLI/EraBased/Transaction

1 file changed

+2
-1
lines changed

cardano-cli/src/Cardano/CLI/EraBased/Transaction/HashCheck.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module Cardano.CLI.EraBased.Transaction.HashCheck
88
where
99

1010
import Cardano.Api (Certificate (..), ExceptT, firstExceptT)
11+
import qualified Cardano.Api as L
1112
import qualified Cardano.Api.Ledger as L
1213
import qualified Cardano.Api.Shelley as Shelley
1314

@@ -16,7 +17,6 @@ import Cardano.CLI.Types.Common (MustCheckHash (..), PotentiallyChecke
1617
import Cardano.CLI.Types.Errors.TxCmdError (TxCmdError (..))
1718

1819
import Control.Monad (forM_)
19-
import qualified Cardano.Api as L
2020

2121
-- | Check the hash of the anchor data against the hash in the anchor
2222
checkAnchorMetadataHash :: L.Anchor L.StandardCrypto -> ExceptT TxCmdError IO ()
@@ -72,6 +72,7 @@ checkProposalHashes
7272
checkGovActionHashes
7373
:: L.GovAction (Shelley.ShelleyLedgerEra era) -> ExceptT TxCmdError IO ()
7474
checkGovActionHashes govAction' =
75+
-- Only the `NewConstitution` governance action contains a checkable hash with a corresponding URL.
7576
Shelley.shelleyBasedEraConstraints eon $
7677
case govAction' of
7778
L.ParameterChange{} -> return ()

0 commit comments

Comments
 (0)