Remix发生mock compiler source not found异常解决方案

简介: Remix发生mock compiler source not found异常解决方案

首次使用Remix进行Solidity智能合约开发时会遇到mock compiler: source not found异常信息导致无法进行编译,本篇文章带大家解决此问题。


问题现在

当编写好智能合约之后,准备进行编译操作,会发现在右边出现如下图提示:mock compiler: source not found。


image.png出现此异常的主要原因就是没有设置Remix所使用的Solidity编程语言版本。再核对一下浏览器上的url是否为:https://remix.ethereum.org/#optimize=true&version=builtin。在参数中并没有指定Solidity版本信息的参数,因此导致无法进行编译。


解决方案

在右边的功能区中,选择setting,在setting下面的“Select new compiler version”中选择使用的对应版本即可。


image.png当选择完版本之后,会发现在url中自动新增了version参数。当然,如果知道具体的版本信息,也可以直接在url中添加version参数来达到同样的目的,只不过操作起来需要记住具体的版本信息。这里,选择不同的版本根据实际需要确定,不同的版本支持的语法有所不同。


原文链接:https://www.choupangxia.com/topic/detail/29


目录
相关文章
|
开发工具
编译SDK出现aclocal-1.15: command not found错误
编译SDK出现aclocal-1.15: command not found错误
889 0
【错误记录】Tinker 热修复示例运行报错 ( Execution failed for task ‘:app:tinkerProcessD‘ . tinkerId is not set!!! )
【错误记录】Tinker 热修复示例运行报错 ( Execution failed for task ‘:app:tinkerProcessD‘ . tinkerId is not set!!! )
294 0
【错误记录】Tinker 热修复示例运行报错 ( Execution failed for task ‘:app:tinkerProcessD‘ . tinkerId is not set!!! )
|
5月前
|
测试技术 iOS开发 Perl
废弃第三方库导致的library not found for -lXXXXX(linker command failed ) 完美解决方法
废弃第三方库导致的library not found for -lXXXXX(linker command failed ) 完美解决方法
56 0
|
Java
SpringBoot导入第三方jar方法打包报错Failed to load ApplicationContext Failed to determine a suitable driver cla
这是第一篇博客,很早想写了,只不过每次解决问题后都觉得人家写的蛮好的,自己无须再写了,不过昨天打包时遇到的这个问题,自己找半天解决了,看很多博客也是许久才解决,不说了我的方法如下:
155 0
|
Go C++
VS Code安装go 插件报错处理
在命令行中设置如下go 变量,重启vscode 即可
103 0
【解决方案】成功解决ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects报错信息
成功解决ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects报错信息
【解决方案】成功解决ERROR: Could not build wheels for opencv-python, which is required to install pyproject.toml-based projects报错信息
编译x264出现错误:No working C compiler found.
编译x264出现错误:No working C compiler found.
334 0
解决bug:AndroidStudio导项目出异常Minimum supported Gradle version is 3.3.Current version is 2.14
解决bug:AndroidStudio导项目出异常Minimum supported Gradle version is 3.3.Current version is 2.14
323 0
解决bug:AndroidStudio导项目出异常Minimum supported Gradle version is 3.3.Current version is 2.14
|
区块链
Remix发生mock compiler source not found异常解决方案
Remix发生mock compiler source not found异常解决方案
112 0
Remix发生mock compiler source not found异常解决方案
|
Android开发
解决bug:在eclipse中导入Android项目时报错: “invalid resource directory name bin/res/crunch”
解决bug:在eclipse中导入Android项目时报错: “invalid resource directory name bin/res/crunch”
538 0