Skip to content

Commit

Permalink
fix cancun compilation error for pytest actions
Browse files Browse the repository at this point in the history
  • Loading branch information
tuturu-tech committed Dec 23, 2024
1 parent 4509238 commit db1a71c
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 db1a71c

Please sign in to comment.