-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Plutus script hash support in update-committee
, overnance committee create-cold-key-resignation-certificate
and query committee-state
commands.
#658
Conversation
...-cli/test/cardano-cli-golden/files/golden/help/conway_governance_action_update-committee.cli
Outdated
Show resolved
Hide resolved
50f710a
to
c4d4a94
Compare
stakeVKeyHash <- firstExceptT AddressCmdReadKeyFileError $ | ||
newExceptT $ readVerificationKeyOrHashOrFile AsStakeKey stkVkeyOrFile | ||
|
||
stakeVKeyHash <- modifyError AddressCmdReadKeyFileError $ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍 I've always found those firstExcepT _ $ newExceptT
a bit clunky.
c4d4a94
to
4f423d5
Compare
7d65f7d
to
df8c56a
Compare
ada9409
to
e0bdbcf
Compare
{ Cmd.eon | ||
, Cmd.vkeyColdKeySource | ||
, Cmd.anchor | ||
, Cmd.outFile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice usage of punning to reduce noise 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested both the governance action and the resignation certificate. Both work as expected!
52ec0c1
to
5a2bd72
Compare
@@ -686,11 +690,26 @@ pAddCommitteeColdVerificationKeyFile = | |||
] | |||
|
|||
--- | |||
pRemoveCommitteeColdVerificationKeyOrHashOrFile :: Parser (VerificationKeyOrHashOrFile CommitteeColdKey) | |||
pRemoveCommitteeColdVerificationKeyOrHashOrFile :: Parser (VerificationKeyOrHashOrFileOrScriptHash CommitteeColdKey) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If being nitpicky, this function should be named pRemoveCommitteeColdVerificationKeyOrHashOrFileOrScriptHash
(note the additional suffix).
But probably this is overkill, since this is also indicated in the return type. So maybe just rename to pRemoveCommitteeColdVerificationKeySource
?
The same remark applies to pAddCommitteeColdVerificationKeyOrHashOrFile
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that's a good idea. I think we can go with source since it's a single-use parser and it would define what's happening in an unique way.
Co-authored-by: Clément Hurlin <[email protected]>
80e8f4b
to
3f8ed28
Compare
fabae22
to
5b66907
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, code looks much neater now. Just a couple of lints
Co-authored-by: Pablo Lamela <[email protected]>
f87ae78
to
cdf58a7
Compare
update-committee
update-committee
, overnance committee create-cold-key-resignation-certificate
and query committee-state
commands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Changelog
Context
This PR consists of two commits:
MonadTransIOError
update-committee
.It is better to review this PR commit-by-commit.
Requires changes from the following PR to compile successfully:
Checklist