Skip to content

Tuple not valid while encoding #135

@Doublemme

Description

@Doublemme

The following screenshots show the issue

Image

Image

this is the ABI of the function with the error:

{
  "inputs": [
    {
      "components": [
        {
          "internalType": "string",
          "name": "name",
          "type": "string"
        },
        {
          "internalType": "bool",
          "name": "isProtected",
          "type": "bool"
        }
      ],
      "internalType": "struct SubdomainClaimer.ProtectedDomain",
      "name": "_protectedDomain",
      "type": "tuple"
    }
  ],
  "name": "updateProtectedDomains",
  "outputs": [],
  "stateMutability": "nonpayable",
  "type": "function"
}

While in the method that requires a tuple[] works

Image

This is the ABI working

{
  "inputs": [
    {
      "components": [
        {
          "internalType": "string",
          "name": "name",
          "type": "string"
        },
        {
          "internalType": "bool",
          "name": "isProtected",
          "type": "bool"
        }
      ],
      "internalType": "struct SubdomainClaimer.ProtectedDomain[]",
      "name": "_protectedDomains",
      "type": "tuple[]"
    }
  ],
  "name": "initializeV2",
  "outputs": [],
  "stateMutability": "nonpayable",
  "type": "function"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions