Skip to content

Commit

Permalink
Improve handling of "version" string from Etherscan
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrieco-tob authored Feb 7, 2024
1 parent 1b2998e commit cf981c7
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


def _sanitize_remappings(
Expand Down

0 comments on commit cf981c7

Please sign in to comment.