From cfab1ad6eef7cf6798df4fc93a42449076f22563 Mon Sep 17 00:00:00 2001 From: Jack Zampolin Date: Wed, 5 Dec 2018 16:48:30 -0800 Subject: [PATCH] Add Account Decoder to the LCD (#3013) --- client/lcd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/lcd/root.go b/client/lcd/root.go index 67639b8a2f..00dab053e3 100644 --- a/client/lcd/root.go +++ b/client/lcd/root.go @@ -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")