Skip to content

Commit

Permalink
Merge pull request #119 from iamdefinitelyahuman/fix-0.8.0
Browse files Browse the repository at this point in the history
Fix for ABI format in Solidity 0.8.0
  • Loading branch information
iamdefinitelyahuman authored Dec 28, 2020
2 parents 337d2b2 + 3998795 commit bdb35d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solcx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def _parse_compiler_output(stdoutdata: str) -> Dict:
sources = output.get("sources", {})

for path_str, data in contracts.items():
if "abi" in data:
if "abi" in data and isinstance(data["abi"], str):
data["abi"] = json.loads(data["abi"])
key = path_str.rsplit(":", maxsplit=1)[0]
if "AST" in sources.get(key, {}):
Expand Down

0 comments on commit bdb35d7

Please sign in to comment.