Fix bug compiling contracts without solc warnings

analyze-with-mythx
Nathan 5 years ago
parent 839e35a212
commit 29796dd8da
  1. 2
      mythril/ethereum/util.py

@ -71,7 +71,7 @@ def get_solc_json(file, solc_binary="solc", solc_settings_json=None):
result = json.loads(out) result = json.loads(out)
for error in result["errors"]: for error in result.get("errors", []):
if error["severity"] == "error": if error["severity"] == "error":
raise CompilerError( raise CompilerError(
"Solc experienced a fatal error.\n\n%s" % error["formattedMessage"] "Solc experienced a fatal error.\n\n%s" % error["formattedMessage"]

Loading…
Cancel
Save