Closed poplexity closed 2 years ago
this issue is a subset of https://github.com/telosnetwork/teloscan/issues/104
Need some more info to work on this, especially steps to reproduce
https://github.com/telosnetwork/.github/blob/main/.github/ISSUE_TEMPLATE/bug_report.md
You can reproduce on this contract using the write function swapETHForExactTokens
and the parameters as noted in the screenshot
note: the PR for this issue covered parameter types address
, address[n?]
, bool
, bool[n?]
, and string
Overview
When interacting with the contract function interface, some/all array arguments will incorrectly produce an error.
Steps to reproduce
swapETHForExactTokens
Current behavior
Method call fails with the error
Result (uint256[]): invalid value for array (argument="value", value="[0x160505F3dfD1cb58B91e322c828Ae0F74c043c3C]", code=INVALID_ARGUMENT, version=contracts/5.7.0)
Note: need to determine a set of valid values that should work, not just error in a different way
Expected behavior
method should fail for a different reason, this error suggests an issue with parsing array type arguments (possibly only
address[]
in this case). The fix for this should be tested to at least not break (or fix, if they're broken) the currently-implemented argument types,uint256
anduint256[]
along with introducing a workingaddress[]
andaddress
. Implementation of other parameter types as well as improved error UI will be handled in #104additionally: