Closed p00temkin closed 1 year ago
Solved by using Tuple.singleton() in this case .. realized just after posting :)
Alternatively you can also do an explicit cast to Object:
Tuple.of((Object) bigints)
so that bigints doesn't accidentally match Object[]
and get unpacked:
Hi, I have a question on how to encode a uint256[] parameter. Creating a tuple for the following works just fine:
but if the function argument is a pure uint256[] such as
the encoding fails with the following trace:
Any suggestions on how to pass the pure uint256[] correctly in this case?
Thank you