Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Unknown ABI type: tuple[] #54

Open
SelimTavukcuoglu opened this issue Apr 1, 2021 · 4 comments
Open

Unknown ABI type: tuple[] #54

SelimTavukcuoglu opened this issue Apr 1, 2021 · 4 comments

Comments

@SelimTavukcuoglu
Copy link

Using the pragma abicoder v2 in my solidity smart contract, I have this error when the result of the method called returns an array of struct.

Thx for your work !

@mrcolak
Copy link

mrcolak commented May 14, 2021

I am also having the same issue with bytes[] for following ABI.
This Contract is used by every BSC related platform, but I couldn't make it work with ethereum-php.

@asihud sorry for the tag, I saw that you solved the issue #40. Maybe you can also help us with this.
@digitaldonkey is this repo abondoned?

https://bscscan.com/address/0x1ee38d535d541c55c9dae27b12edf090c608e6fb#code

[
  {
    "constant": true,
    "inputs": [
      {
        "components": [
          {
            "name": "target",
            "type": "address"
          },
          {
            "name": "callData",
            "type": "bytes"
          }
        ],
        "name": "calls",
        "type": "tuple[]"
      }
    ],
    "name": "aggregate",
    "outputs": [
      {
        "name": "blockNumber",
        "type": "uint256"
      },
      {
        "name": "returnData",
        "type": "bytes[]"
      }
    ],
    "payable": false,
    "stateMutability": "view",
    "type": "function"
  },
  {
    "constant": true,
    "inputs": [
      {
        "name": "addr",
        "type": "address"
      }
    ],
    "name": "getEthBalance",
    "outputs": [
      {
        "name": "balance",
        "type": "uint256"
      }
    ],
    "payable": false,
    "stateMutability": "view",
    "type": "function"
  }
]

@ynohtna92
Copy link

I haven't tested for this case but can you try use this fix I made a pull request for?
7d3610a

@digitaldonkey
Copy link
Owner

@mrcolak I just migrated the pipeline. For PR uncluding tests I promise faster response. Otherwise I work on it when I find time, which is currently not very often.

@JSanchezFDZ
Copy link

Same problem. Any update?

@digitaldonkey @ynohtna92

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants