Skip to content

Commit

Permalink
Handle changes in allow-paths in solc versions 0.8.8+ (#1584)
Browse files Browse the repository at this point in the history
* Handle changes in allow-paths in solc versions 0.8.8+

* Add docker

* Remove test
  • Loading branch information
norhh authored Jan 12, 2022
1 parent ec17c14 commit 56bcd5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythril/ethereum/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ def get_solc_json(file, solc_binary="solc", solc_settings_json=None):
:param solc_settings_json:
:return:
"""
cmd = [solc_binary, "--standard-json", "--allow-paths", "."]

cmd = [solc_binary, "--standard-json", "--allow-paths", ".,/"]
settings = {}
if solc_settings_json:
with open(solc_settings_json) as f:
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ deps =
pytest
pytest-mock
pytest-cov

passenv = MYTHRIL_DIR INFURA_ID
whitelist_externals = mkdir
commands =
Expand Down

0 comments on commit 56bcd5a

Please sign in to comment.