refactor(client): use cmtservice for comet-validator-set command (#17187)
Co-authored-by: Julien Robert <julien@rbrt.fr>
This commit is contained in:
@@ -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)
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user