Skip to content

Commit

Permalink
Change GetQueryCmd to take client.Context (cosmos#6326)
Browse files Browse the repository at this point in the history
* Change GetQueryCmd to take a client.Context

* Update CHANGELOG

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
  • Loading branch information
aaronc and alexanderbez authored Jun 3, 2020
1 parent a6442cb commit 81980b3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/simcli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 81980b3

Please sign in to comment.