Skip to content

Commit

Permalink
fix: cli cmd had wrong number of args specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Divine committed Nov 16, 2023
1 parent 473b4fc commit 9585ef4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion x/perp/v2/client/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,8 @@ func (s *IntegrationTestSuite) TestQueryCollateralDenom() {
resp,
),
)
s.Equal(resp.CollateralDenom, types.TestingCollateralDenomNUSD)
s.Equal(types.TestingCollateralDenomNUSD, resp.CollateralDenom,
"resp: %s", resp.String())
}

func TestIntegrationTestSuite(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion x/perp/v2/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func CmdQueryCollateral() *cobra.Command {
Query the metadata of the fungible collateral used by the perp module.
`,
),
Args: cobra.ExactArgs(1),
Args: cobra.ExactArgs(0),
RunE: func(cmd *cobra.Command, args []string) error {
clientCtx, err := client.GetClientQueryContext(cmd)
if err != nil {
Expand Down

0 comments on commit 9585ef4

Please sign in to comment.