remix部署合约时报错invalid opcode: opcode 0x5f not defined

remix部署合约时报错invalid opcode: opcode 0x5f not defined

具体如下:

报错详情

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","id":5298400859886330}
可能的原因:

可能是编译器版本不对,当前编译器版本编译出来的opcode不符合规范,切换编译器版本,或看合约上是否已经指定编译器版本,切换成对应的编译器版本。

操作如下:

在此切换版本
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_44543317/article/details/131780762
今日推荐