Skip to content

Commit

Permalink
Make outFile the last field in GovernanceVoteCreateCmdArgs
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Oct 21, 2023
1 parent a64fd33 commit eb9421a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ data GovernanceVoteCreateCmdArgs era
, voteChoice :: Vote
, governanceAction :: (TxId, Word32)
, votingStakeCredentialSource :: AnyVotingStakeVerificationKeyOrHashOrFile
, outFile :: VoteFile Out
, mAnchor :: Maybe (VoteUrl, VoteHashSource)
, outFile :: VoteFile Out
}

data GovernanceVoteViewCmdArgs era
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ pGovernanceVoteCreateCmdArgs cOnwards =
<$> pVoteChoice
<*> pGovernanceActionId
<*> pAnyVotingStakeVerificationKeyOrHashOrFile
<*> pFileOutDirection "out-file" "Output filepath of the vote."
<*> optional pVoteAnchor
<*> pFileOutDirection "out-file" "Output filepath of the vote."

pAnyVotingStakeVerificationKeyOrHashOrFile :: Parser AnyVotingStakeVerificationKeyOrHashOrFile
pAnyVotingStakeVerificationKeyOrHashOrFile =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runGovernanceVoteCmds = \case
runGovernanceVoteCreateCmd :: ()
=> Cmd.GovernanceVoteCreateCmdArgs era
-> ExceptT GovernanceVoteCmdError IO ()
runGovernanceVoteCreateCmd (Cmd.GovernanceVoteCreateCmdArgs cOnwards voteChoice (govActionTxId, govActionIndex) voteStakeCred oFp mAnchor) = do
runGovernanceVoteCreateCmd (Cmd.GovernanceVoteCreateCmdArgs cOnwards voteChoice (govActionTxId, govActionIndex) voteStakeCred mAnchor oFp) = do
let sbe = conwayEraOnwardsToShelleyBasedEra cOnwards -- TODO: Conway era - update vote creation related function to take ConwayEraOnwards
voteProcedure <- case mAnchor of
Nothing -> pure $ createVotingProcedure cOnwards voteChoice Nothing
Expand Down
2 changes: 1 addition & 1 deletion cardano-cli/test/cardano-cli-golden/files/golden/help.cli
Original file line number Diff line number Diff line change
Expand Up @@ -6362,12 +6362,12 @@ Usage: cardano-cli conway governance vote create (--yes | --no | --abstain)
| --cc-hot-verification-key-file FILE
| --cc-hot-key-hash STRING
)
--out-file FILE
[--vote-anchor-url TEXT
( --vote-anchor-metadata TEXT
| --vote-anchor-metadata-file FILE
| --vote-anchor-metadata-hash HASH
)]
--out-file FILE

Vote creation.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Usage: cardano-cli conway governance vote create (--yes | --no | --abstain)
| --cc-hot-verification-key-file FILE
| --cc-hot-key-hash STRING
)
--out-file FILE
[--vote-anchor-url TEXT
( --vote-anchor-metadata TEXT
| --vote-anchor-metadata-file FILE
| --vote-anchor-metadata-hash HASH
)]
--out-file FILE

Vote creation.

Expand Down Expand Up @@ -45,12 +45,12 @@ Available options:
--cc-hot-verification-key-file FILE
Filepath of the Consitutional Committee hot key.
--cc-hot-key-hash STRING Constitutional Committee key hash (hex-encoded).
--out-file FILE Output filepath of the vote.
--vote-anchor-url TEXT Vote anchor URL
--vote-anchor-metadata TEXT
Vote anchor contents as UTF-8 encoded text.
--vote-anchor-metadata-file FILE
Vote anchor contents as a text file.
--vote-anchor-metadata-hash HASH
Hash of the vote anchor data.
--out-file FILE Output filepath of the vote.
-h,--help Show this help text

0 comments on commit eb9421a

Please sign in to comment.