cleanunicorn / mythos

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

Compilation fails when contract does not contain a pragma #24

Closed muellerberndt closed 5 years ago

muellerberndt commented 5 years ago

Compilation fails for contracts that don't contain "pragma solidity". For example:

contract Suicide {

  function kill(address payable addr) public {
    if (addr == address(0x0)) {
      selfdestruct(addr);
    }
  }
}
$ mythos analyze suicide.sol Suicide
Reading contract suicide.sol... done
Downloading Solidity version undefined
Error retrieving binary: Not Found
Compiling contract suicide.sol... failed

Expected behavior

Use the latest solc if not version is explicitly specified.

eswarasai commented 5 years ago

@b-mueller -- This should be fixed in my PR #25 :)

cleanunicorn commented 5 years ago

Fixed in 0.5.0