Skip to content

Wrong value for resolved field path #114

@cslashm

Description

@cslashm

In erc7730 json schema, a path field is declared as

"path": {
            "title": "Path",
            "type": "string",
            "description": "A path to the field in the structured data. The path is a JSON path expression that can be used to extract the field value from the structured data."
        },

But when applying resolve command we get a complex path object instead of a simple string.
In the following exemple when resolving tether.json, the path for _to param value should be

  "path" : "_to"

but we get:

          "transfer(address,uint256)": {
              "intent": "Send",
              "fields": [
                  {
                      "path": {
                          "type": "data",
                          "absolute": true,
                          "elements": [
                              {
                                  "type": "field",
                                  "identifier": "_to"
                              }
                          ]
                      },

Did I miss something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions