Return struct data from a view without requiring the creation of a custom class
Feature description_
A clear and concise description of what the feature would be.
I would like a way to return struct data from a contracts view function without needing to add the struct definition as a class which extends DynamicStruct
Ideally we could specify the struct format like "(uint256,address,string)" or in the case of struct array "((uint256,address,string)[])"
The response could be something as simple as an ArrayList<Object>
Reason: I want to provide a way for the end user to call views on any contract without needing to add contract specific classes to my java project.
Hi @cathalmf, if I understand this is similar to what this PR is proposing?
Hi @cathalmf, if I understand this is similar to what this PR is proposing?
I dont think so. That still requires passing in type T which still means you need to have a definition of the struct in your Java code.
My idea would be to have a way to return an ArrayList containing the struct values.