cleanunicorn / mythos

CLI client for the MythX API
https://mythx.io/
20 stars 6 forks source link

[BUG] ParserError: Source file requires different compiler version #35

Closed sjukeshov closed 5 years ago

sjukeshov commented 5 years ago

Describe the bug ParserError: Source file requires different compiler version

To Reproduce Steps to reproduce the behavior:

  1. https://github.com/ConsenSys/truffle-webpack-demo/blob/master/contracts/MetaCoin.sol
  2. mythos analyze contracts/MetaCoin.sol MetaCoin
  3. Error generated Error: contracts/ConvertLib.sol:2:1: ParserError: Source file requires different compiler version (current compiler is 0.5.6+commit.b259423e.Emscripten.clang - note that nightly builds are › considered to be strictly less than the released version › library ConvertLib{ › ^-----^ ›

Expected behavior No errors or issues found

Console output

mythos analyze contracts/MetaCoin.sol MetaCoin
Reading contract contracts/MetaCoin.sol... done
Compiling with Solidity version: v0.5.6+commit.b259423e
 ›   Error: contracts/ConvertLib.sol:2:1: ParserError: Source file requires different compiler version (current compiler is 0.5.6+commit.b259423e.Emscripten.clang - note that nightly builds are 
 ›   considered to be strictly less than the released version
 ›   library ConvertLib{
 ›   ^-----^
 ›
Compiling contract contracts/MetaCoin.sol... failed

Context information

Additional context MYTHX_ETH_ADDRESS and MYTHX_PASSWORD were exported with correct credentials

cleanunicorn commented 5 years ago

I was not able to compile the contracts with Solidity 0.4.0