Merge pull request #712 from crytic/dev-buidler-erc20-props

Enable the generation of ERC20 properties with BUIDLER
pull/1045/head
Feist Josselin 3 years ago committed by GitHub
commit a382eb8d84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      slither/tools/properties/properties/erc20.py

@ -78,6 +78,7 @@ def generate_erc20(
if contract.compilation_unit.core.crytic_compile.type not in [
PlatformType.TRUFFLE,
PlatformType.SOLC,
PlatformType.BUILDER,
]:
logging.error(
f"{contract.compilation_unit.core.crytic_compile.type} not yet supported by slither-prop"
@ -162,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:
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