Skip to content

Commit

Permalink
Add comment to checkGovActionHashes
Browse files Browse the repository at this point in the history
  • Loading branch information
palas committed Oct 25, 2024
1 parent 5784d62 commit 78f05e0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module Cardano.CLI.EraBased.Transaction.HashCheck
where

import Cardano.Api (Certificate (..), ExceptT, firstExceptT)
import qualified Cardano.Api as L
import qualified Cardano.Api.Ledger as L
import qualified Cardano.Api.Shelley as Shelley

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

import Control.Monad (forM_)
import qualified Cardano.Api as L

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

0 comments on commit 78f05e0

Please sign in to comment.