Skip to content

Commit

Permalink
Add Account Decoder to the LCD (cosmos#3013)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzampolin authored Dec 6, 2018
1 parent ba5e87c commit cfab1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/lcd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type RestServer struct {
// NewRestServer creates a new rest server instance
func NewRestServer(cdc *codec.Codec) *RestServer {
r := mux.NewRouter()
cliCtx := context.NewCLIContext().WithCodec(cdc)
cliCtx := context.NewCLIContext().WithCodec(cdc).WithAccountDecoder(cdc)

// Register version methods on the router
r.HandleFunc("/version", CLIVersionRequestHandler).Methods("GET")
Expand Down

0 comments on commit cfab1ad

Please sign in to comment.