Skip to content

Commit

Permalink
fix: adding depency crashes when not string [APE-959] (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
wakamex authored May 22, 2023
1 parent c263156 commit bb89886
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ape_solidity/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ def _add_dependencies(
cached_source.parent.mkdir(parents=True, exist_ok=True)
if src.content:
cached_source.touch()
cached_source.write_text(src.content or "")
cached_source.write_text(
src.content if isinstance(src.content, str) else str(src.content)
)

# Add dependency remapping that may be needed.
for compiler in manifest.compilers or []:
Expand Down

0 comments on commit bb89886

Please sign in to comment.