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的版本

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐