|
|
@ -78,6 +78,7 @@ def generate_erc20( |
|
|
|
if contract.compilation_unit.core.crytic_compile.type not in [ |
|
|
|
if contract.compilation_unit.core.crytic_compile.type not in [ |
|
|
|
PlatformType.TRUFFLE, |
|
|
|
PlatformType.TRUFFLE, |
|
|
|
PlatformType.SOLC, |
|
|
|
PlatformType.SOLC, |
|
|
|
|
|
|
|
PlatformType.BUILDER, |
|
|
|
]: |
|
|
|
]: |
|
|
|
logging.error( |
|
|
|
logging.error( |
|
|
|
f"{contract.compilation_unit.core.crytic_compile.type} not yet supported by slither-prop" |
|
|
|
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 |
|
|
|
# TODO: move this to crytic-compile |
|
|
|
def _platform_to_output_dir(platform: AbstractPlatform) -> Path: |
|
|
|
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") |
|
|
|
return Path(platform.target, "contracts", "crytic") |
|
|
|
if platform.TYPE == PlatformType.SOLC: |
|
|
|
if platform.TYPE == PlatformType.SOLC: |
|
|
|
return Path(platform.target).parent |
|
|
|
return Path(platform.target).parent |
|
|
|