rm confusing comments

This commit is contained in:
2024-01-10 11:20:29 +05:30
committed by nabarun
parent a9c04a7980
commit cffaf547a9
2 changed files with 1 additions and 6 deletions
+1 -2
View File
@@ -306,8 +306,7 @@ func (k Keeper) processRecord(ctx sdk.Context, record *types.ReadableRecord, isR
}
k.PutRecord(ctx, recordObj)
// TODO process type here
// recordType, ok := record.Attributes["type"].(string)
// TODO look up/validate record type here
if err := k.processAttributes(ctx, record.Attributes, record.ID, ""); err != nil {
return err
-4
View File
@@ -13,10 +13,6 @@ const (
AuthorityUnderAuction = "auction"
)
// TODO if schema records are to be more permissive than allowing a map of fields, this type will
// become specific to content records. schema records will either occupy a new message or have new
// more general purpose helper types.
// ReadablePayload represents a signed record payload that can be serialized from/to YAML.
type ReadablePayload struct {
Record map[string]interface{} `json:"record"`