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, ".py-solc/solc-v" + version,
"bin/solc", "bin/solc",
), # py-solc setup ), # py-solc setup
"/usr/bin/solc", # Ubuntu PPA setup #"/usr/bin/solc", # Ubuntu PPA setup
] ]
for solc_path in solc_binaries: for solc_path in solc_binaries:
if os.path.exists(solc_path): if os.path.exists(solc_path):

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

Loading…
Cancel
Save