fix for --solv regression

pull/773/head
mickayz 6 years ago
parent 1bbe7d9761
commit 8096975e00
  1. 2
      mythril/ethereum/util.py
  2. 3
      mythril/mythril.py

@ -79,7 +79,7 @@ def solc_exists(version):
".py-solc/solc-v" + version,
"bin/solc",
), # py-solc setup
"/usr/bin/solc", # Ubuntu PPA setup
#"/usr/bin/solc", # Ubuntu PPA setup
]
for solc_path in solc_binaries:
if os.path.exists(solc_path):

@ -227,6 +227,9 @@ class Mythril(object):
else:
try:
solc.install_solc("v" + version)
solc_binary = util.solc_exists(version)
if not solc_binary:
raise SolcError()
except SolcError:
raise CriticalError(
"There was an error when trying to install the specified solc version"

Loading…
Cancel
Save