Enable the generation of erc20 properies with BUIDLER

pull/712/head
Gustavo Grieco 4 years ago committed by GitHub
parent 62885d5fe9
commit 65bcca8b7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      slither/tools/properties/properties/erc20.py

@ -75,6 +75,7 @@ def generate_erc20(
if contract.slither.crytic_compile.type not in [
PlatformType.TRUFFLE,
PlatformType.SOLC,
PlatformType.BUILDER
]:
logging.error(f"{contract.slither.crytic_compile.type} not yet supported by slither-prop")
return
@ -153,7 +154,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:
if platform.TYPE == PlatformType.TRUFFLE or platform.TYPE == PlatformType.BUILDER:
return Path(platform.target, "contracts", "crytic")
if platform.TYPE == PlatformType.SOLC:
return Path(platform.target).parent

Loading…
Cancel
Save