Handle changes in allow-paths in solc versions 0.8.8+ (#1584)

* Handle changes in allow-paths in solc versions 0.8.8+

* Add docker

* Remove test
pull/1585/head
Nikhil Parasaram 3 years ago committed by GitHub
parent ec17c1423c
commit 56bcd5a21c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      mythril/ethereum/util.py
  2. 1
      tox.ini

@ -41,7 +41,8 @@ def get_solc_json(file, solc_binary="solc", solc_settings_json=None):
:param solc_settings_json: :param solc_settings_json:
:return: :return:
""" """
cmd = [solc_binary, "--standard-json", "--allow-paths", "."]
cmd = [solc_binary, "--standard-json", "--allow-paths", ".,/"]
settings = {} settings = {}
if solc_settings_json: if solc_settings_json:
with open(solc_settings_json) as f: with open(solc_settings_json) as f:

@ -24,6 +24,7 @@ deps =
pytest pytest
pytest-mock pytest-mock
pytest-cov pytest-cov
passenv = MYTHRIL_DIR INFURA_ID passenv = MYTHRIL_DIR INFURA_ID
whitelist_externals = mkdir whitelist_externals = mkdir
commands = commands =

Loading…
Cancel
Save