Fix incorrect solc version for json-only

pull/573/head
Josselin 4 years ago
parent 6845a9c43b
commit 66e08ea195
  1. 4
      slither/solc_parsing/slitherSolc.py

@ -115,11 +115,11 @@ class SlitherSolc:
self._core.add_source_code(sourcePath)
if data_loaded[self.get_key()] == "root":
self._solc_version = "0.3"
self._core._solc_version = "0.3"
logger.error("solc <0.4 is not supported")
return
elif data_loaded[self.get_key()] == "SourceUnit":
self._solc_version = "0.4"
self._core._solc_version = "0.4"
self._parse_source_unit(data_loaded, filename)
else:
logger.error("solc version is not supported")

Loading…
Cancel
Save