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 }