From 56a8d4940d17302921c4523a0c0297756443d7e4 Mon Sep 17 00:00:00 2001 From: Collin Brittain Date: Thu, 6 Oct 2022 09:12:50 -0500 Subject: [PATCH] Use ExactArgs for unbatched-send-to-ethereum cli command --- module/x/gravity/client/cli/query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/x/gravity/client/cli/query.go b/module/x/gravity/client/cli/query.go index 27f42d6ba..15b725bcf 100644 --- a/module/x/gravity/client/cli/query.go +++ b/module/x/gravity/client/cli/query.go @@ -652,7 +652,7 @@ func CmdDenomToERC20() *cobra.Command { func CmdUnbatchedSendToEthereums() *cobra.Command { cmd := &cobra.Command{ Use: "unbatched-send-to-ethereums [sender-address]", - Args: cobra.MaximumNArgs(1), + Args: cobra.ExactArgs(1), Short: "query all unbatched send to ethereum messages", RunE: func(cmd *cobra.Command, args []string) error { clientCtx, queryClient, err := newContextAndQueryClient(cmd)