Skip to content

Commit

Permalink
Allow for more vyper versions
Browse files Browse the repository at this point in the history
CI improvements
  • Loading branch information
montyly committed Oct 12, 2023
1 parent 938913a commit 8b0bc8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crytic_compile/platform/vyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/ci_test_vyper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8b0bc8f

Please sign in to comment.