Skip to content

Commit

Permalink
Merge pull request #56 from crytic/fix-pytest-fail
Browse files Browse the repository at this point in the history
fix cancun compilation error for pytest actions
  • Loading branch information
tuturu-tech authored Dec 23, 2024
2 parents 4509238 + 7bf41fd commit 3751f8d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ def setup_foundry_temp_dir(tmp_path_factory: Any) -> None:
subprocess.run(
["forge", "install", "transmissions11/solmate", "--no-git"], check=True, cwd=temp_dir
)

# Create foundry config
foundry_config = os.path.join(temp_dir, "foundry.toml")
out_str: str = '[profile.default]\nsolc-version = "0.8.19"\nevm_version = "shanghai"'
with open(foundry_config, "w", encoding="utf-8") as outfile:
outfile.write(out_str)

# Create remappings file
create_remappings_file(temp_dir, None)

Expand Down

0 comments on commit 3751f8d

Please sign in to comment.