wrap typed data for record attributes (#70)

* unpack interface

* unpackInterfaces

* gofmpt

* patch setRecord in WrapTxToTypedData

* patch message types

* hardcode record attributes

* patch typed data

* versioning record attributes and http post rules for rpc messages

* record names
This commit is contained in:
Murali Krishna Komatireddy
2023-01-09 12:19:11 +05:30
committed by GitHub
parent 78c513d0fd
commit fac5a95679
18 changed files with 463 additions and 251 deletions
+4 -2
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
}