![](/img/trans.png)
[英]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.