From db1a71ca6b8ded7b43d23c538a4b4adc2f3a510c Mon Sep 17 00:00:00 2001 From: tuturu-tech Date: Mon, 23 Dec 2024 12:44:51 +0100 Subject: [PATCH 1/2] fix cancun compilation error for pytest actions --- tests/conftest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index f12215c..62cebd7 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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) From 7bf41fd0c39da029320fa86c3f1d633f0c908aa1 Mon Sep 17 00:00:00 2001 From: tuturu-tech Date: Mon, 23 Dec 2024 12:48:19 +0100 Subject: [PATCH 2/2] formatting --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 62cebd7..661bf82 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -120,7 +120,7 @@ def setup_foundry_temp_dir(tmp_path_factory: Any) -> None: # 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\"" + 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)