From 2a19a9602aad17c86a0926b5918c52d0cef3c4c2 Mon Sep 17 00:00:00 2001 From: Alessandro Manfredi Date: Mon, 11 Nov 2024 08:50:35 +0100 Subject: [PATCH 1/2] chore(foundry.toml): changes node_modules path within libs --- packages/evm/.gitignore | 4 +++- packages/evm/foundry.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/evm/.gitignore b/packages/evm/.gitignore index bcbfbbf2..f8bc7749 100644 --- a/packages/evm/.gitignore +++ b/packages/evm/.gitignore @@ -1 +1,3 @@ -types/ \ No newline at end of file +types/ +out/ +cache_forge/ \ No newline at end of file diff --git a/packages/evm/foundry.toml b/packages/evm/foundry.toml index 4f3bf9f3..a844ccce 100644 --- a/packages/evm/foundry.toml +++ b/packages/evm/foundry.toml @@ -1,6 +1,6 @@ [profile.default] src = 'contracts' out = 'out' -libs = ['node_modules', 'lib'] +libs = ['../../node_modules', 'lib'] test = 'test' cache_path = 'cache_forge' \ No newline at end of file From 879c276cf225117993a7f127b673a7b8b990eca4 Mon Sep 17 00:00:00 2001 From: Alessandro Manfredi Date: Mon, 11 Nov 2024 08:57:30 +0100 Subject: [PATCH 2/2] chore(foundry.toml): enables optimizer and via_ir --- packages/evm/foundry.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/evm/foundry.toml b/packages/evm/foundry.toml index a844ccce..c1eefa37 100644 --- a/packages/evm/foundry.toml +++ b/packages/evm/foundry.toml @@ -3,4 +3,7 @@ src = 'contracts' out = 'out' libs = ['../../node_modules', 'lib'] test = 'test' -cache_path = 'cache_forge' \ No newline at end of file +cache_path = 'cache_forge' +via_ir = true +optimizer = true +optimizer_runs = 10_000 \ No newline at end of file