We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
{ "internalType": "uint256[][]", "name": "results", "type": "uint256[][]" }
Use the following Java class to wrap the data:
public RemoteCall<ProposalInfo> getInfo(BigInteger id) { final Function function = new Function(FUNC_INFO, Arrays.asList(new Uint256(id)), Arrays.asList(new TypeReference<ExampleStruct>() { })); return executeRemoteCallSingleValueReturn(function, ExampleStruct.class); } ... public static class ExampleStruct extends DynamicStruct { ... public final DynamicArray<DynamicArray<Uint256>> results; public ProposalInfo(..., @Parameterized(type = Uint256.class) DynamicArray<DynamicArray<Uint256>> results) { super(..., results); ... this.results = results; } }
The results field should be of type DynamicArray<DynamicArray<Uint256>>, correctly representing a two-dimensional array of Uint256.
DynamicArray<DynamicArray<Uint256>>
The results field is incorrectly returned as DynamicArray<Uint256> instead of DynamicArray<DynamicArray<Uint256>>.
DynamicArray<Uint256>
Describe the environment in which the issue occurs
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Incorrect wrapping of two-dimensional arrays
Steps To Reproduce
Use the following Java class to wrap the data:
Expected behavior
The results field should be of type
DynamicArray<DynamicArray<Uint256>>
, correctly representing a two-dimensional array of Uint256.Actual behavior
The results field is incorrectly returned as
DynamicArray<Uint256>
instead ofDynamicArray<DynamicArray<Uint256>>
.Environment
Describe the environment in which the issue occurs
The text was updated successfully, but these errors were encountered: