如何在 Etherscan 中传递结构体数组作为参数

问题描述 投票:0回答:1
struct PricingOption {
   uint208 price;
   uint40 numberOfEntries;
}

pricingOptions
属于
PricingOption[]
类型。尝试将
pricingOptions
数组作为
[[1000000000000,10],[1700000000000,20]]
传递是行不通的。将数字括在引号中也没有帮助。我传递参数的方式在 Remix 中有效,但在 Etherscan 中不起作用。如何在 Etherscan 中传递结构数组?

invalid tuple value (argument="tuple", value="[100000000", code=INVALID_ARGUMENT, version=abi/5.0.7)

arrays parameters tuples solidity etherscan
1个回答
0
投票

这是不可能的。我不得不使用 Remix。

© www.soinside.com 2019 - 2024. All rights reserved.