New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
INVALID_ARGUMENT error for array argument when trying to use Write Contract feature #3486
Comments
@varasev it should be fixed now. Could you check at your side? You don't need to wrap in quotes or brackets |
@vbaranov I still see the error when I try to pass an array of addresses there. Tried these cases:
|
@varasev yes, sorry. xDai instance patched with the final fix. Could you check again? |
Now it works fine except a case when we don't use
But the error persists for
I think we should make a text note to let users know which format is correct in case of |
I added support of square brackets for array input type. Thus, these inputs are correct:
|
Could you also add support of quotes? Remix accepts the array as JSON input and it doesn't accept [0xb408e8217Aa6Bb2fEaD09FFCBAa505255573e04D,0x1092a1E3A3F2FB2024830Dd12064a4B33fF8EbAe] but accepts ["0xb408e8217Aa6Bb2fEaD09FFCBAa505255573e04D","0x1092a1E3A3F2FB2024830Dd12064a4B33fF8EbAe"] The users who used JSON or Remix would expect that the correct JSON formatted array should work on Blockscout as well. |
I'm getting an error
expected array value (argument="_whitelist", value="[\"0xb408e8217Aa6Bb2fEaD09FFCBAa505255573e04D\"]", code=INVALID_ARGUMENT, version=abi/5.0.0-beta.153)
when clicking the Write button for thesetSendersWhitelist
function on the page https://blockscout.com/poa/xdai/address/0x5f849Fee27a1029fA5bDFA610677f95a82B47Eb8/write-contractThe input value is
["0xb408e8217Aa6Bb2fEaD09FFCBAa505255573e04D"]
.I also tried without quotes
[0xb408e8217Aa6Bb2fEaD09FFCBAa505255573e04D]
and without brackets0xb408e8217Aa6Bb2fEaD09FFCBAa505255573e04D
.The text was updated successfully, but these errors were encountered: