wrap typed data for record attributes #70

Merged
0xmuralik merged 9 commits from murali/record-attributes into main 2023-01-09 06:49:12 +00:00
Showing only changes of commit 39038980cc - Show all commits

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
}