Merge pull request #1045 from crytic/dev-pylint-2.12.2

Fix pylint 2.12.2
pull/1048/head
Feist Josselin 3 years ago committed by GitHub
commit feac84d7f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      slither/tools/properties/properties/erc20.py

@ -163,7 +163,7 @@ def _initialization_recommendation(type_property: str) -> str:
# TODO: move this to crytic-compile
def _platform_to_output_dir(platform: AbstractPlatform) -> Path:
if platform.TYPE == PlatformType.TRUFFLE or platform.TYPE == PlatformType.BUILDER:
if platform.TYPE in [PlatformType.TRUFFLE, platform.TYPE == PlatformType.BUILDER]:
return Path(platform.target, "contracts", "crytic")
if platform.TYPE == PlatformType.SOLC:
return Path(platform.target).parent

Loading…
Cancel
Save