Skip to content

Commit

Permalink
fix: try supply binary
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jul 2, 2024
1 parent 5e247d0 commit 3cc42c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ape_vyper/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,11 @@ def compile_code(
if version not in self.installed_versions:
_install_vyper(version)

binary = self._get_vyper_bin(version)
try:
result = vvm.compile_source(code, base_path=pm.path, vyper_version=version)
result = vvm.compile_source(
code, base_path=pm.path, vyper_version=version, vyper_binary=binary
)
except Exception as err:
raise VyperCompileError(str(err)) from err

Expand Down

0 comments on commit 3cc42c5

Please sign in to comment.