Skip to content

Commit

Permalink
Merge pull request #136 from njgheorghita/bugfix
Browse files Browse the repository at this point in the history
Builder bug
  • Loading branch information
njgheorghita authored Dec 13, 2018
2 parents 0908b2f + b7bd7f6 commit fd3a076
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ethpm/tools/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ def normalize_contract_type(
contract_type_data.get("userdoc", {}), contract_type_data.get("devdoc", {})
)
yield "natspec", natspec
if "metadata" in contract_type_data:
# make sure metadata isn't an empty string in solc output
if "metadata" in contract_type_data and contract_type_data["metadata"]:
yield "compiler", normalize_compiler_object(
json.loads(contract_type_data["metadata"])
)
Expand Down

0 comments on commit fd3a076

Please sign in to comment.