From 3ea950db9a1281b10b57a9078e1febf80a9c3243 Mon Sep 17 00:00:00 2001 From: keruch Date: Mon, 30 Sep 2024 10:54:14 +0200 Subject: [PATCH] feat(sponsorship): fixed revoke vote CLI --- x/sponsorship/client/cli/tx.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x/sponsorship/client/cli/tx.go b/x/sponsorship/client/cli/tx.go index 29d9a7ec0..1d1a8d0cd 100644 --- a/x/sponsorship/client/cli/tx.go +++ b/x/sponsorship/client/cli/tx.go @@ -26,6 +26,7 @@ func GetTxCmd() *cobra.Command { } cmd.AddCommand(CmdVote()) + cmd.AddCommand(CmdRevokeVote()) return cmd } @@ -66,7 +67,7 @@ func CmdRevokeVote() *cobra.Command { Use: "revoke-vote --from ", Short: "Revoke a previously submitted vote for gauges", Example: "dymd tx sponsorship revoke-vote --from my_validator", - Args: cobra.ExactArgs(1), + Args: cobra.ExactArgs(0), RunE: func(cmd *cobra.Command, args []string) error { clientCtx, err := client.GetClientTxContext(cmd) if err != nil {