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

Please support type 'tuple[]' in json of solidity, #20674

Closed
lxex opened this issue Feb 16, 2020 · 6 comments
Closed

Please support type 'tuple[]' in json of solidity, #20674

lxex opened this issue Feb 16, 2020 · 6 comments

Comments

@lxex
Copy link
Contributor

lxex commented Feb 16, 2020

Hi eth engineers,

I had deployed my contract in main net, and the contract have some interfaces that return type is 'tuple[]' .
when I use web3.js to call those interfaces, I get error:
invalid solidity type!: tuple[]

Please support type 'tuple[]' in json of solidity quickly,
My contract can't be redeploy, because my contracts has strored some ethers by user.

thanks.

@ligi
Copy link
Member

ligi commented Feb 16, 2020

what version of web3.js are you using?

@lxex
Copy link
Contributor Author

lxex commented Feb 17, 2020

Thanks for your reply.
I check the web3.js installation environment:
..\node_modules\web3\package.json :
{
"name": "web3",
"version": "1.2.4",

...
}

@ligi
Copy link
Member

ligi commented Feb 17, 2020

seems very related web3/web3.js#1241 (comment)

@lxex
Copy link
Contributor Author

lxex commented Feb 19, 2020

yes,it seems the same issue, but no solution.
otherwise, the solidity type 'tyuple[]' has supported in ethereum\go-ethereum\accounts\abi\type.go
I guest the type hasn't supported in web3.js

Looking forward to your confirmation.

@gballet
Copy link
Member

gballet commented Jul 30, 2020

@liuxiong0011 we recently addressed this problem, could you try with the latest version of geth?

@gballet
Copy link
Member

gballet commented Sep 3, 2020

Tuple support is available on our side, closing

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

No branches or pull requests

4 participants