-
-
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
Solidity multidimensional array as return #2038
Comments
I've just encountered another issue with multi-dimensional arrays as return value, but with the opposite generated code. For a function defined as
the generated wrapper was:
that didn't work because of the missing nested array. Changing it to:
made it working. Tested with today 4.12.0-SNAPSHOT. |
The current
|
@kxl4126 |
Bug_title
Impossible to call Solidity function that returns 2d array from contract
Steps To Reproduce
Simple solidity function:
function get() view external returns (uint128[][] memory) {...}
Generate wrapper, or construct ethCall manually.
Expected behavior
Function should be called successfully and return result
Actual behavior
Exception occurred
Environment
Web3j version 4.9.8
Additional context
So generated code is using
new TypeReference<DynamicArray<DynamicArray<Uint128>>>() {}
as output value which seems like not really working.Is there any workaround? When constructing a call manually (as opposed to generating wrapper), what should I set for Types to 'Output parameters' to make it work?
The text was updated successfully, but these errors were encountered: