Fix quoted json return

This commit is contained in:
Jack Zampolin 2018-12-07 17:33:52 -08:00
parent 1ba93ea1c1
commit b558e50eb2
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ func QueryKeysRequestHandler(indent bool) http.HandlerFunc {
}
// an empty list will be JSONized as null, but we want to keep the empty list
if len(infos) == 0 {
PostProcessResponse(w, cdc, "[]", indent)
PostProcessResponse(w, cdc, []string{}, indent)
return
}
keysOutput, err := Bech32KeysOutput(infos)