-
-
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
Structs arrays support #1321
Structs arrays support #1321
Conversation
test coverage looks good - needs a spotless apply |
Still needs more encoding tests with different functions and also codegen module update to generate arrays of structs code. |
* adds structs arrays fixtures to AbiV2TestFixture * Adds necessary AbiV2 functions for testing * Adds Abi Decoder tests * Adds Structs array + multiple structs returns decoder * fixes String padded length size * adds type name return for structs when getting simple name * Adds structs encoder tests * Adds structs encoder * adds struct type to AbiTypes * imports cleanup * spotless * Utils refactor * fix array of structs creation by the decoder * fix structs array encoding * imports fix * add support for array of structs wrapper generation * make the convert to native function support arrays of structs * add getTypeAsString java doc * fix getTypeAsString to support structs arrays * add encoder structs array tests * add codegen structs array wrapper generation test * cosmetics * spotless + cosmetics * suppress warnings + remove unnecessary sout * suppress warnings + remove unnecessary sout * update ComplexStorage.sol to use arrays of structs * cosmetics * fixes dynamic byte arrays prefixed their length encoding in structs. * structs dynamic values tweak + add tests for dynamic struct containing dynamic bytes array * fixes encoding of array strings + adds tests * fixes byte types padded length * cosmetics * spotless * fix isParametrizedTypeStaticStruct * remove unnecessary function * fixes dynamic type in static array + adds tests * adds more encoder tests * fixes static array with static struct decoder * adds static/dynamic array with static struct encoder test * suppress warnings + java docs + cosmetics * javadocs + spotless
abi"outputs": [{
|
@874341642 Please open a new issue with this case, and provide more information on solidity version, compiler used etc. |
The tuple contains arrays, what do I need to do to solve this problem?
The tuple contains arrays, what do I need to do to solve this problem? |
Please help me |
when is this included in the new version? I am using this dependency
and web3j version: Version: 1.4.2, still have error |
What does this PR do?
Adds support for:
Where should the reviewer start?
Abi encoder/decoder and check the encoding formal specification
Why is it needed?
More and more users are using structs in their Solidity smart contracts