diff --git a/gql/graphiql.go b/gql/graphiql.go index 75c6a3b8..92bf2eb8 100644 --- a/gql/graphiql.go +++ b/gql/graphiql.go @@ -33,7 +33,7 @@ func PlaygroundHandler(apiURL string) http.HandlerFunc { } w.Header().Set("Content-Type", "text/html") err := page.Execute(w, map[string]interface{}{ - "apiUrl": apiURL, + "apiURL": apiURL, }) if err != nil { panic(err) diff --git a/x/nameservice/keeper/keeper.go b/x/nameservice/keeper/keeper.go index be86d0b4..d951e8ea 100644 --- a/x/nameservice/keeper/keeper.go +++ b/x/nameservice/keeper/keeper.go @@ -107,7 +107,7 @@ func (k Keeper) GetRecord(ctx sdk.Context, id string) (record types.Record) { store := ctx.KVStore(k.storeKey) result := store.Get(GetRecordIndexKey(id)) k.cdc.MustUnmarshal(result, &record) - return record + return recordObjToRecord(store, record) } // ListRecords - get all records.