From 39038980cca165426e0f7265fbd6c7380c0f1dfa Mon Sep 17 00:00:00 2001 From: 0xmuralik Date: Tue, 3 Jan 2023 14:28:58 +0530 Subject: [PATCH] record names --- x/registry/keeper/keeper.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/x/registry/keeper/keeper.go b/x/registry/keeper/keeper.go index 3c33d9b2..eabfe20e 100644 --- a/x/registry/keeper/keeper.go +++ b/x/registry/keeper/keeper.go @@ -155,10 +155,12 @@ func (k Keeper) RecordsFromAttributes(ctx sdk.Context, attributes []*types.Query if record.Deleted { continue } - if !all && len(record.Names) == 0 { + store := ctx.KVStore(k.storeKey) + recordWithNames := recordObjToRecord(store, record) + if !all && len(recordWithNames.Names) == 0 { continue } - records = append(records, record) + records = append(records, recordWithNames) } return records, nil }