Change GetQueryCmd to take client.Context (#6326)

* Change GetQueryCmd to take a client.Context

* Update CHANGELOG

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
This commit is contained in:
Aaron Craelius
2020-06-03 20:15:11 +00:00
committed by GitHub
co-authored by Alexander Bezobchuk
parent 2e11c81668
commit fed0c2317d
21 changed files with 70 additions and 65 deletions
+5 -1
View File
@@ -103,7 +103,11 @@ func queryCmd(cdc *codec.Codec) *cobra.Command {
)
// add modules' query commands
simapp.ModuleBasics.AddQueryCommands(queryCmd, cdc)
clientCtx := client.Context{}
clientCtx = clientCtx.
WithJSONMarshaler(appCodec).
WithCodec(cdc)
simapp.ModuleBasics.AddQueryCommands(queryCmd, clientCtx)
return queryCmd
}