记录智能合约solidity编译的错误
Voting.sol:1:1: ParserError: Source file requires different compiler version (current compiler is 0.6.7+commit.b8d736ae.Emscripten.clang - note that nightly builds are considered to be strictly less t
·
Voting.sol:1:1: ParserError: Source file requires different compiler version (current compiler is 0.6.7+commit.b8d736ae.Emscripten.clang - note that nightly builds are considered to be strictly less than the released version 怎么解决
亲测已解决!!!
解决办法如下:
将智能合约Voting.sol 的版本由pragma solidity ^0.4.25 改为pragma solidity ^0.6.7
solc 版本还是0.4.25
意思就是智能合约的版本一定不小于solc的版本
更多推荐
已为社区贡献1条内容
所有评论(0)