Skip to content

Commit

Permalink
Merge pull request #511 from input-output-hk/mkoura/prev-governance-a…
Browse files Browse the repository at this point in the history
…ction-consistency-fix

Unify previous governance action parameters across actions
  • Loading branch information
mkoura authored Dec 7, 2023
2 parents e62ea2f + 848d011 commit b0cf3f0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ pGovernanceActionNoConfidenceCmd era = do
<*> pStakeVerificationKeyOrHashOrFile (Just "deposit-return")
<*> pAnchorUrl
<*> pAnchorDataHash
<*> pTxId "governance-action-tx-id" "Previous txid of `NoConfidence` or `NewCommittee` governance action."
<*> pWord32 "governance-action-index" "Previous tx's governance action index of `NoConfidence` or `NewCommittee` governance action."
<*> pTxId "prev-governance-action-tx-id" "Txid of the previous governance action."
<*> pWord32 "prev-governance-action-index" "Action index of the previous governance action."
<*> pFileOutDirection "out-file" "Output filepath of the no confidence proposal."
)
$ Opt.progDesc "Create a no confidence proposal."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ hprop_golden_governanceActionCreateNoConfidence =
, "--deposit-return-stake-verification-key-file", stakeAddressVKeyFile
, "--anchor-url", "proposal-dummy-url"
, "--anchor-data-hash", "c7ddb5b493faa4d3d2d679847740bdce0c5d358d56f9b1470ca67f5652a02745"
, "--governance-action-index", "5"
, "--governance-action-tx-id", "b1015258a99351c143a7a40b7b58f033ace10e3cc09c67780ed5b2b0992aa60a"
, "--prev-governance-action-index", "5"
, "--prev-governance-action-tx-id", "b1015258a99351c143a7a40b7b58f033ace10e3cc09c67780ed5b2b0992aa60a"
, "--out-file", actionFile
]

Expand Down
4 changes: 2 additions & 2 deletions cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
Expand Up @@ -6164,8 +6164,8 @@ Usage: cardano-cli conway governance action create-no-confidence
)
--anchor-url TEXT
--anchor-data-hash HASH
--governance-action-tx-id TXID
--governance-action-index WORD32
--prev-governance-action-tx-id TXID
--prev-governance-action-index WORD32
--out-file FILE

Create a no confidence proposal.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Usage: cardano-cli conway governance action create-no-confidence
)
--anchor-url TEXT
--anchor-data-hash HASH
--governance-action-tx-id TXID
--governance-action-index WORD32
--prev-governance-action-tx-id TXID
--prev-governance-action-index WORD32
--out-file FILE

Create a no confidence proposal.
Expand All @@ -29,11 +29,9 @@ Available options:
--anchor-url TEXT Anchor URL
--anchor-data-hash HASH Proposal anchor data hash (obtain it with
"cardano-cli conway governance hash ...")
--governance-action-tx-id TXID
Previous txid of `NoConfidence` or `NewCommittee`
governance action.
--governance-action-index WORD32
Previous tx's governance action index of
`NoConfidence` or `NewCommittee` governance action.
--prev-governance-action-tx-id TXID
Txid of the previous governance action.
--prev-governance-action-index WORD32
Action index of the previous governance action.
--out-file FILE Output filepath of the no confidence proposal.
-h,--help Show this help text

0 comments on commit b0cf3f0

Please sign in to comment.