Add Account Decoder to the LCD (#3013)

This commit is contained in:
Jack Zampolin 2018-12-05 16:48:30 -08:00 committed by GitHub
parent ba5e87ca6f
commit cfab1ad6ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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")