diff --git a/crytic_compile/platform/vyper.py b/crytic_compile/platform/vyper.py index bcf4725b..c705620c 100644 --- a/crytic_compile/platform/vyper.py +++ b/crytic_compile/platform/vyper.py @@ -77,7 +77,8 @@ def compile(self, crytic_compile: "CryticCompile", **kwargs: str) -> None: compilation_unit = CompilationUnit(crytic_compile, str(target)) compiler_version = compilation_artifacts["compiler"].split("-")[1] - assert compiler_version == "0.3.7" + if compiler_version != "0.3.7": + logging.info("Vyper != 0.3.7 support is a best effort and might fail") compilation_unit.compiler_version = CompilerVersion( compiler="vyper", version=compiler_version, optimized=False ) diff --git a/scripts/ci_test_vyper.sh b/scripts/ci_test_vyper.sh index 6f81efc7..9be8fa31 100755 --- a/scripts/ci_test_vyper.sh +++ b/scripts/ci_test_vyper.sh @@ -8,7 +8,7 @@ echo "Testing vyper integration of $(realpath "$(which crytic-compile)")" cd tests/vyper || exit 255 -if ! crytic-compile auction.vy +if ! crytic-compile auction.vy --export-formats standard then echo "vyper test failed" && exit 255 else echo "vyper test passed" && exit 0 fi