We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1900477 + cfba898 commit a2c7147Copy full SHA for a2c7147
crytic_compile/platform/brownie.py
@@ -206,8 +206,9 @@ def _get_version(compiler: Dict) -> str:
206
str: Compiler version
207
"""
208
version = compiler.get("version", "")
209
- version = version[len("Version: ") :]
210
- version = version[0 : version.find("+")]
+ if "Version:" in version:
+ version = version.split("Version:")[1].strip()
211
+ version = version[0 : version.find("+")] # TODO handle not "+" not found
212
return version
213
214
0 commit comments