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的版本
版权声明:本文为weixin_43520099原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。