当使用的 Solidity 库文件中 pragma 指定的 版本 与本地编译器的使用版本不一致时,会出现这类提示。

 

解决方式是菜单栏 View -> Extensions -> Extension Settings -> Compile Using Remote Versio 编辑 settings.json

在其中加一行:"solidity.compileUsingRemoteVersion": "v0.5.0+commit.1d4f565a",

针对你合约文件中指定的 Solidity 版本,选择实际存在的编译器版本配置上去即可 https://github.com/ethereum/solc-bin/tree/gh-pages/bin

 

Refer:有哪些Solidity编辑器

Ref:https://ethereum.stackexchange.com/questions/62914/solidity-version-error

Link:https://www.cnblogs.com/farwish/p/12556524.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
  • 2021-09-15
猜你喜欢
  • 2022-01-04
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2021-10-23
  • 2021-07-21
  • 2022-01-13
相关资源
相似解决方案