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

Unsupported type encountered: tuple #60

Open
cryptoDevTrader opened this issue Dec 11, 2020 · 2 comments
Open

Unsupported type encountered: tuple #60

cryptoDevTrader opened this issue Dec 11, 2020 · 2 comments

Comments

@cryptoDevTrader
Copy link

When generating sources for a contract which has return or input values which are arrays of a struct, the following error is thrown.

Execution default-cli of goal org.web3j:web3j-maven-plugin:4.6.5:generate-sources failed: Unsupported type encountered: tuple

Below is a sample contract which causes the error above.

// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
pragma experimental ABIEncoderV2;

interface MyContract {
    struct MyData {
        address account;
        uint256 balance;
    }

    function myFunction(address account) external view returns (MyData[] memory data);
}
@cryptoDevTrader
Copy link
Author

Looks like this is directly related to hyperledger-web3j/web3j#935

@zouqingfeng
Copy link

Have you solved the problem

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

2 participants