Skip to content

Commit

Permalink
fix: vvm Version TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Jan 7, 2025
1 parent e8d78c4 commit 83a4057
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions brownie/project/compiler/vyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_abi(contract_source: str, name: str) -> Dict:
raise exc.with_traceback(None)
else:
try:
compiled = vvm.compile_standard(input_json, vyper_version=_active_version)
compiled = vvm.compile_standard(input_json, vyper_version=str(_active_version))
except vvm.exceptions.VyperError as exc:
raise CompilerError(exc, "vyper")

Expand All @@ -103,7 +103,7 @@ def _get_vyper_version_list() -> Tuple[List, List]:
def install_vyper(*versions: str) -> None:
"""Installs vyper versions."""
for version in versions:
vvm.install_vyper(version, show_progress=False)
vvm.install_vyper(str(version), show_progress=False)


def find_vyper_versions(
Expand Down Expand Up @@ -150,7 +150,7 @@ def find_vyper_versions(
)

if not version or (install_latest and latest > version):
to_install.add(latest)
to_install.add(str(latest))
elif latest and latest > version:
new_versions.add(str(version))

Expand Down

0 comments on commit 83a4057

Please sign in to comment.