如何将二维数组作为etherscan中的函数参数传递?

发布于 2025-01-17 08:25:49 字数 267 浏览 5 评论 0原文

我需要从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

人事已非 2025-01-24 08:25:49

这适用于 Remix,但不适用于 etherscan。无需引号。也应该适用于地址。

[[1,2],[6,9],[2323,10]]

This works with Remix, but not etherscan. No quotes necessary. Should work for addresses too.

[[1,2],[6,9],[2323,10]]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文