Skip to content

Commit

Permalink
Merge pull request #545 from crytic/improve-_convert_version
Browse files Browse the repository at this point in the history
Improve handling of "version" string from Etherscan
  • Loading branch information
0xalpharush authored Feb 7, 2024
2 parents 1b2998e + ad9bf30 commit c0ad9f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crytic_compile/platform/etherscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,9 @@ def _convert_version(version: str) -> str:
Returns:
str: converted version
"""
return version[1 : version.find("+")]
if "+" in version:
return version[1 : version.find("+")]
return version[1:]


def _sanitize_remappings(
Expand Down

0 comments on commit c0ad9f5

Please sign in to comment.