Skip to content

Commit 83a4057

Browse files
fix: vvm Version TypeError
1 parent e8d78c4 commit 83a4057

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

brownie/project/compiler/vyper.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def get_abi(contract_source: str, name: str) -> Dict:
7777
raise exc.with_traceback(None)
7878
else:
7979
try:
80-
compiled = vvm.compile_standard(input_json, vyper_version=_active_version)
80+
compiled = vvm.compile_standard(input_json, vyper_version=str(_active_version))
8181
except vvm.exceptions.VyperError as exc:
8282
raise CompilerError(exc, "vyper")
8383

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

108108

109109
def find_vyper_versions(
@@ -150,7 +150,7 @@ def find_vyper_versions(
150150
)
151151

152152
if not version or (install_latest and latest > version):
153-
to_install.add(latest)
153+
to_install.add(str(latest))
154154
elif latest and latest > version:
155155
new_versions.add(str(version))
156156

0 commit comments

Comments
 (0)