Closed satyambnsal closed 1 month ago
Satyam, can you make it work not only for constructors?
Satyam, can you make it work not only for constructors?
Yes, I'm going to add support for method as well.
Following changes can be tested with Voting contract https://gist.github.com/satyambnsal/5e8165392e21b3d50d8da1ffad5b906c
Here constructor takes candidate name array and method getCandidates
take array of candidate index (ex. [0,1]
)
Not working on my side, after deploying with some contructor args I'm getting this:
@varex83 What constructor arguments did you use ?
we need to fix the issue with plugin crashing
Thank you @varex83 for catching this. its fixed now. This was happening due to initial inputs array being set to empty array instead of based on element inputs array length.
Relevant issue: #41
Changes Summary Support Generic array as input in contract methods and constructor call.