How to pass more than 20 parameters in solidity function? I have tried using array[] parameter that uses pragma ABIENCODERV2 experimental feature. But this feature cannot be used in production purpose.So is there any other way which passes 20 parameter to the solidity function at a time?
1 Answer
I don't think so. So your options are:
1) Get by with less
2) Call separate functions to set more values. So in first function set 10 values and in another set another 10 values.
3) Combine data in different parameters into one by for example concatenating string. Note that it's expensive to split the string again into separate parameters.