Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tuple not valid while encoding #135

Open
Doublemme opened this issue Jan 23, 2025 · 0 comments
Open

Tuple not valid while encoding #135

Doublemme opened this issue Jan 23, 2025 · 0 comments

Comments

@Doublemme
Copy link

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"
}
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant