Skip to content

The 'gov query-params' command is a bit confusing #663

Closed
@trevorfu

Description

@trevorfu

When I test with 'ABCD' commands as described below:


`➜ ~ iriscli gov query-params --module=gov (A)
[
"Gov/govDepositProcedure",
"Gov/govTallyingProcedure",
"Gov/govVotingProcedure"
]

➜ ~ iriscli gov query-params --key=Gov/govVotingProcedure (B)
{"key":"Gov/govVotingProcedure","value":"{"voting_period":172800000000000}","op":""}

➜ ~ iriscli gov query-params --module=gov --key=Gov/govVotingProcedure (C)
[
"Gov/govDepositProcedure",
"Gov/govTallyingProcedure",
"Gov/govVotingProcedure"
]

➜ ~ iriscli gov query-params --module=gov --key=Gov/mockProcedure (D)
[
"Gov/govDepositProcedure",
"Gov/govTallyingProcedure",
"Gov/govVotingProcedure"
]`


I got some confusion here...

I think the command 'C' should get a response with:
{"key":"Gov/govVotingProcedure","value":"{\"voting_period\":172800000000000}","op":""}

And the command 'D' should have an error alert such as:
ERROR: ERROR: Codespace: 6 Code: 111 Message: "Gov/mockProcedure is not found"

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions