50 remix 部署合约在gancahe fork能成功但是正式网络不行

remix 部署合约在gancahe fork能成功但是正式网络不行,limit加N倍还是不行 Gas estimation errored with the following message (see below). The transaction execution will likely fail. Do you want to force sending? Returned error: {"jsonrpc":"2.0","error":"invalid opcode: opcode 0x5f not defined"

请先 登录 后评论

最佳答案 2023-07-10 10:59

这是在Google找到的答案,机翻一下:

这是因为 Solid 0.8.20引入了 PUSH0(0x5f)操作码,该操作码仅在 ETH 主网上受支持,而在任何其他链上都不受支持。这就是为什么其他链无法找到 PUSH0(0x5f)操作码并抛出此错误的原因。 考虑对其他链使用0.8.19。

参考链接

请先 登录 后评论

其它 0 个回答

  • 0 关注
  • 0 收藏,1182 浏览
  • 提出于 2023-07-09 22:59

相似问题