record names

This commit is contained in:
0xmuralik 2023-01-03 14:28:58 +05:30
parent 26300b0738
commit 39038980cc

View File

@ -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
}