Skip to content

Commit c0ad9f5

Browse files
authored
Merge pull request #545 from crytic/improve-_convert_version
Improve handling of "version" string from Etherscan
2 parents 1b2998e + ad9bf30 commit c0ad9f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crytic_compile/platform/etherscan.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,9 @@ def _convert_version(version: str) -> str:
474474
Returns:
475475
str: converted version
476476
"""
477-
return version[1 : version.find("+")]
477+
if "+" in version:
478+
return version[1 : version.find("+")]
479+
return version[1:]
478480

479481

480482
def _sanitize_remappings(

0 commit comments

Comments
 (0)