feat: remaining record content types to support #79

Closed
0xmuralik wants to merge 35 commits from murali/record-attributes into main
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 { if record.Deleted {
continue continue
} }
if !all && len(record.Names) == 0 { store := ctx.KVStore(k.storeKey)
recordWithNames := recordObjToRecord(store, record)
if !all && len(recordWithNames.Names) == 0 {
continue continue
} }
records = append(records, record) records = append(records, recordWithNames)
} }
return records, nil return records, nil
} }