Generated wrapper around struct containing a address[]
member can't be instantiated
#2001
Labels
bug
A bug in behaviour or functionality
Steps To Reproduce
address
es and a function to access such an object:Expected behavior
The generated code should be able to build an instance without encountering a NPE.
Actual behavior
Web3j can't find the type for the
contributors
parameter. It knows the parameter is some sort of dynamic array, but can't find out the generics type because of type erasure. It misses some sort of information to find out the expect type of eachcontributor
isString
.As far as I understand Web3j code, the constructor misses the
@Parameterized
annotation. Its signature should be the following:In fact, if I manually add this annotation to the generated wrappers, then everything works fine! So I guess this annotation should be added during the wrappers generation.
Environment
Additional context
References:
Task
struct definitionviewTask
function definitionTask
constructorviewTask
methodThe text was updated successfully, but these errors were encountered: