[英]remix solidity contract how to pass multiple arguments into the create button
[英]How to fix / debug errors (invalid arrayify value) when deploying a solidity contract in Remix
我正在尝试通过Remix部署智能合约。 不幸的是,它失败了,并显示了一条非常无用的错误消息。
创建 MyContract 出错:错误编码 arguments:错误:无效的 arrayify 值 (argument="value", value="", code=INVALID_ARGUMENT, version=bytes/5.5.0)
这是contract
使用的构造函数:
struct RRSet {
uint32 inception;
uint32 expiration;
bytes20 hash;
}
constructor(bytes memory _anchors) {
// Insert the 'trust anchors' - the key hashes that start the chain
// of trust for all other records.
anchors = _anchors;
rrsets[keccak256(hex"00")][DNSTYPE_DS] = RRSet({
inception: uint32(0),
expiration: uint32(3767581600), // May 22 2089 - the latest date we can encode as of writing this
hash: bytes20(keccak256(anchors))
});
emit RRSetUpdated(hex"00", anchors);
}
我的合同使用is
从抽象合同和常规合同继承。 有没有办法查看错误或来源的位置,或者是否有可能对其进行调试?
它可以输入“[]”或“0x”,我理解的“数据”应该具有类似“[xxx]”的格式,我建议持有者可以更新描述以澄清它。 谢谢 Petr 回答了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.