From d3c93f9eae6b0cff678a0531ed80dccbf494fb97 Mon Sep 17 00:00:00 2001 From: nabarun Date: Mon, 12 Dec 2022 15:42:14 +0530 Subject: [PATCH] Load names in getRecordsByIds GQL query --- x/nameservice/keeper/keeper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.