Skip to content

Commit

Permalink
Merge pull request #820 from IntersectMBO/smelc/fix-typo-in-doc
Browse files Browse the repository at this point in the history
Fix typo in help/error messages
  • Loading branch information
smelc authored Jul 4, 2024
2 parents a1dc1a7 + cf6ddd5 commit 312fa9b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions cardano-cli/src/Cardano/CLI/EraBased/Options/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ pHexHash a mErrPrefix =
. deserialiseFromRawBytesHex (AsHash a)
. BSC.pack
where
errPrefix = maybe "" ((<>) ": ") mErrPrefix
errPrefix = maybe "" (": " <>) mErrPrefix

pBech32KeyHash :: SerialiseAsBech32 (Hash a) => AsType a -> ReadM (Hash a)
pBech32KeyHash a =
Expand Down Expand Up @@ -660,7 +660,7 @@ pAddCommitteeColdVerificationKeyHash =
where
deserialiseFromHex :: String -> Either String (Hash CommitteeColdKey)
deserialiseFromHex =
first (\e -> docToString $ "Invalid Consitutional Committee cold key hash: " <> prettyError e)
first (\e -> docToString $ "Invalid Constitutional Committee cold key hash: " <> prettyError e)
. deserialiseFromRawBytesHex (AsHash AsCommitteeColdKey)
. BSC.pack

Expand Down Expand Up @@ -690,7 +690,7 @@ pAddCommitteeColdVerificationKeyFile =
fmap File $ Opt.strOption $ mconcat
[ Opt.long "add-cc-cold-verification-key-file"
, Opt.metavar "FILE"
, Opt.help "Filepath of the Consitutional Committee cold key."
, Opt.help "Filepath of the Constitutional Committee cold key."
, Opt.completer (Opt.bashCompleter "file")
]

Expand Down Expand Up @@ -755,7 +755,7 @@ pRemoveCommitteeColdVerificationKeyFile =
fmap File $ Opt.strOption $ mconcat
[ Opt.long "remove-cc-cold-verification-key-file"
, Opt.metavar "FILE"
, Opt.help "Filepath of the Consitutional Committee cold key."
, Opt.help "Filepath of the Constitutional Committee cold key."
, Opt.completer (Opt.bashCompleter "file")
]

Expand Down Expand Up @@ -796,7 +796,7 @@ pCommitteeColdVerificationKeyFile =
fmap File $ Opt.strOption $ mconcat
[ Opt.long "cold-verification-key-file"
, Opt.metavar "FILE"
, Opt.help "Filepath of the Consitutional Committee cold key."
, Opt.help "Filepath of the Constitutional Committee cold key."
, Opt.completer (Opt.bashCompleter "file")
]

Expand Down Expand Up @@ -867,14 +867,14 @@ deserialiseHotCCKeyFromHex =

deserialiseHotCCKeyHashFromHex :: ReadM (Hash CommitteeHotKey)
deserialiseHotCCKeyHashFromHex =
pHexHash AsCommitteeHotKey (Just "Invalid Consitutional Committee hot key hash")
pHexHash AsCommitteeHotKey (Just "Invalid Constitutional Committee hot key hash")

pCommitteeHotVerificationKeyFile :: String -> Parser (VerificationKeyFile In)
pCommitteeHotVerificationKeyFile longFlag =
fmap File $ Opt.strOption $ mconcat
[ Opt.long longFlag
, Opt.metavar "FILE"
, Opt.help "Filepath of the Consitutional Committee hot key."
, Opt.help "Filepath of the Constitutional Committee hot key."
, Opt.completer (Opt.bashCompleter "file")
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Available options:
--remove-cc-cold-verification-key STRING
Constitutional Committee cold key (hex-encoded).
--remove-cc-cold-verification-key-file FILE
Filepath of the Consitutional Committee cold key.
Filepath of the Constitutional Committee cold key.
--remove-cc-cold-verification-key-hash STRING
Constitutional Committee key hash (hex-encoded).
--remove-cc-cold-script-hash HASH
Expand All @@ -60,7 +60,7 @@ Available options:
--add-cc-cold-verification-key STRING
Constitutional Committee cold key (hex-encoded).
--add-cc-cold-verification-key-file FILE
Filepath of the Consitutional Committee cold key.
Filepath of the Constitutional Committee cold key.
--add-cc-cold-verification-key-hash STRING
Constitutional Committee key hash (hex-encoded).
--add-cc-cold-script-hash HASH
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Available options:
--cold-verification-key STRING
Constitutional Committee cold key (hex-encoded).
--cold-verification-key-file FILE
Filepath of the Consitutional Committee cold key.
Filepath of the Constitutional Committee cold key.
--cold-verification-key-hash STRING
Constitutional Committee key hash (hex-encoded).
--cold-script-hash HASH Committee cold Native or Plutus script file hash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Available options:
--cold-verification-key STRING
Constitutional Committee cold key (hex-encoded).
--cold-verification-key-file FILE
Filepath of the Consitutional Committee cold key.
Filepath of the Constitutional Committee cold key.
--cold-verification-key-hash STRING
Constitutional Committee key hash (hex-encoded).
--cold-script-hash HASH Committee cold Native or Plutus script file hash
Expand All @@ -29,7 +29,7 @@ Available options:
--hot-verification-key STRING
Constitutional Committee hot key (hex-encoded).
--hot-verification-key-file FILE
Filepath of the Consitutional Committee hot key.
Filepath of the Constitutional Committee hot key.
--hot-verification-key-hash STRING
Constitutional Committee key hash (hex-encoded).
--hot-script-hash HASH Committee hot Native or Plutus script file hash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Available options:
--cc-hot-verification-key STRING
Constitutional Committee hot key (hex-encoded).
--cc-hot-verification-key-file FILE
Filepath of the Consitutional Committee hot key.
Filepath of the Constitutional Committee hot key.
--cc-hot-key-hash STRING Constitutional Committee key hash (hex-encoded).
--cc-hot-script-hash HASH
Cold Native or Plutus script file hash (hex-encoded).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ Available options:
--cold-verification-key STRING
Constitutional Committee cold key (hex-encoded).
--cold-verification-key-file FILE
Filepath of the Consitutional Committee cold key.
Filepath of the Constitutional Committee cold key.
--cold-verification-key-hash STRING
Constitutional Committee key hash (hex-encoded).
--cold-script-hash HASH Cold Native or Plutus script file hash (hex-encoded).
Obtain it with "cardano-cli hash script ...".
--hot-key STRING Constitutional Committee hot key (hex-encoded).
--hot-key-file FILE Filepath of the Consitutional Committee hot key.
--hot-key-file FILE Filepath of the Constitutional Committee hot key.
--hot-key-hash STRING Constitutional Committee key hash (hex-encoded).
--hot-script-hash HASH Hot Native or Plutus script file hash (hex-encoded).
Obtain it with "cardano-cli hash script ...".
Expand Down

0 comments on commit 312fa9b

Please sign in to comment.