如何将二维数组作为etherscan中的函数参数传递?
我需要从 Etherscan 调用一个合约函数,该函数接受一个二维数组作为参数,即:foo (address[][])
。
我尝试了所有可以想到的方法来调用该函数,但没有成功。 Etherscan 显示错误
expected array value (arg="foo", coderType="array", value="0xabscde1234567887654321abcde")
调用该函数的正确方法是什么?
I need to call a contract function from Etherscan that takes a 2d array as an argument, namely: foo (address[][])
.
I have tried every thinkable way to call the function with no success. Etherscan displays error
expected array value (arg="foo", coderType="array", value="0xabscde1234567887654321abcde")
What is the correct way to call the function?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这适用于 Remix,但不适用于 etherscan。无需引号。也应该适用于地址。
This works with Remix, but not etherscan. No quotes necessary. Should work for addresses too.