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:
co-authored by
Alexander Bezobchuk
parent
2e11c81668
commit
fed0c2317d
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user