Skip to content

Commit

Permalink
fix: TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Aug 17, 2024
1 parent 9e2d8b4 commit c6eed94
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 @@ -48,12 +48,12 @@ def set_vyper_version(version: Union[str, Version]) -> str:
version = Version(version)
if version != Version(vyper.__version__):
# NOTE: vvm uses packaging.version.Version which is not compatible with semantic_version.Version so we first must cast it as a string
version = str(version)
version_str = str(version)
try:
vvm.set_vyper_version(version, silent=True)
vvm.set_vyper_version(version_str, silent=True)
except vvm.exceptions.VyperNotInstalled:
install_vyper(version)
vvm.set_vyper_version(version, silent=True)
vvm.set_vyper_version(version_str, silent=True)
_active_version = version
return str(_active_version)

Expand Down

0 comments on commit c6eed94

Please sign in to comment.