Skip to content

Commit 69b5650

Browse files
authored
Merge pull request #287 from crytic/dev-fix-base64
Fix base64 import
2 parents ec277ac + 2faa992 commit 69b5650

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crytic_compile/crytic_compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ def compile_all(target: str, **kwargs: str) -> List[CryticCompile]:
630630
compilations = load_from_zip(target)
631631
elif target.endswith(".zip.base64"):
632632
with tempfile.NamedTemporaryFile() as tmp:
633-
with open(target, encoding="base64") as target_file:
633+
with open(target, encoding="utf8") as target_file:
634634
tmp.write(base64.b64decode(target_file.read()))
635635
compilations = load_from_zip(tmp.name)
636636
else:

0 commit comments

Comments
 (0)