-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Does Web3.j support Solidity's ABIV2? #935
Comments
https://github.com/esaulpaugh/headlong supports it. I would like to see headlong incorporated into web3j at some point. Currently web3j is developing its own implementation. |
@esaulpaugh any idea if Web3.j's own implementation supports ABIV2? |
Yes, I believe this is the work in progress https://github.com/web3j/web3j/tree/feature/653-solidity-structs |
that work has gone stale - would be cool if someone can pick it up. I will probably get around to it someday but I have other priorities now. |
bump any news? |
Is there any plan to support struct arrays support as @RobertoArtiles mentioned on #1206 ? @iikirilov |
Given the interest here, I'll see what we can do to make this happen. Let me speak with the team. |
Has any progress or decision been made on this? It looks like ABIv2 is now default with the release of Solidity v0.8.0. |
PR #1321 has been created which adds structs array support - it would be great to get input from those on this thread to verify our test coverage is complete enough for their use case. |
Fixed and merged 🎉 Now we have support for arrays of structs and multiple arrays of structs returns. Closing... |
Hi mates Thanks for this functionality. It has been very helpful for us, enabling to work on a more structured language way making smart contracts more efficient and readable. Having said that... using the feature for a while we found a bug decoding strings inside anidated structs. With the following Smart contract
To test the SC we made this quick /dirty test
Executing this code the error is the following java.lang.StringIndexOutOfBoundsException: String index out of range: -234
|
@Ferparishuertas Thank you for reporting this. |
@Ferparishuertas Sorry for the late answer. Thank you |
@sweexordious thank you so much for your help.
when trying this
we get this error, always with index 64:
thanks in advance |
@lfrKain Thank you so much for letting me know. Will try to work on a more global fix for this. |
@sweexordious would be very nice to get a more pluggable solution. I am using maven plugin and had to compile a web3j from scratch and the maven plugin due to not distributed on maven repositories and a chain of dependencies. Didnt find any doc howto handle codegen / solc config independently. ** Structs are not working anymore for me **
is not working - i get the tuple error mentioned in #1361 |
@BarBozz I am able to compile the interface that you provided no problem. |
But how to package and install it? I see that the source code is provided on Git, there is no corresponding installation package |
Many projects (including 0x) uses the somewhat new ABIV2 feature from Solidity. Does Web3.j already support contracts that use it?
For more information about ABIV2, grep for ABIEncoderV2 in the Solidity release notes or read Ethers.js's blog post about the feature.
The text was updated successfully, but these errors were encountered: