Open Pzixel opened 2 years ago
That's actually weird because there are tests for this case (solidity method, test case). Are you sure this is the case using latest version? Anyway i'll try the example probably later today and confirm.
I know that some contracts get their structs generated and some don't. I didn't find the correspondence when happens what.
Thanks for looking at it
I tried with the solidity code and the generated types contain the struct in input. Can you try this in a fresh project? Also can you post the exact ABI that is used to generate types?
All right, let me check it locally once more. Thanks for reply
Consider following contract
it leads to following generation:
Which isn't ideal for several reasons. One of the biggest problems that it's not possible to write function like:
Because
prepareArg
should containstruct Input
as part of signature but it's not generated.I propose generation changed to:
I can try implementing it if you're agreed this is the way to go.