refactor(client): use cmtservice for comet-validator-set command (#17187)

Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
zakir
2023-08-02 08:55:01 +00:00
committed by GitHub
co-authored by Julien Robert
parent 63113e88ed
commit 8503c1822b
6 changed files with 53 additions and 106 deletions
+6 -1
View File
@@ -1,6 +1,7 @@
package cli
import (
"encoding/json"
"fmt"
"strconv"
@@ -59,7 +60,11 @@ func GetCmdQueryProposer() *cobra.Command {
return err
}
return clientCtx.PrintObjectLegacy(prop)
output, err := json.Marshal(prop)
if err != nil {
return err
}
return clientCtx.PrintRaw(output)
},
}