From 55a62d80a8f7dcfd5b89f488be134382692f0958 Mon Sep 17 00:00:00 2001 From: MathisGD Date: Fri, 10 Jan 2025 16:38:53 +0100 Subject: [PATCH 1/4] chore: remove bytecode hash from compilation --- foundry.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/foundry.toml b/foundry.toml index 4206698f..6579b04b 100644 --- a/foundry.toml +++ b/foundry.toml @@ -4,6 +4,7 @@ names = true sizes = true via-ir = true optimizer_runs = 999999 # Etherscan does not support verifying contracts with more optimization runs. +bytecode_hash = "none" [profile.default.invariant] runs = 16 From 466a4fa3182e16bee039c9d77f6cd958845101c7 Mon Sep 17 00:00:00 2001 From: MathisGD <74971347+MathisGD@users.noreply.github.com> Date: Fri, 10 Jan 2025 18:08:38 +0100 Subject: [PATCH 2/4] chore: explicitly turn on the optimizer Signed-off-by: MathisGD <74971347+MathisGD@users.noreply.github.com> --- foundry.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/foundry.toml b/foundry.toml index 6579b04b..8293fcc6 100644 --- a/foundry.toml +++ b/foundry.toml @@ -3,7 +3,8 @@ libs = ["lib"] names = true sizes = true via-ir = true -optimizer_runs = 999999 # Etherscan does not support verifying contracts with more optimization runs. +optimizer = true +optimizer_runs = 999999 bytecode_hash = "none" [profile.default.invariant] From 1ccd4bef730f3ada6b79967b4fa70a463dfbb0a6 Mon Sep 17 00:00:00 2001 From: Adrien Husson Date: Mon, 13 Jan 2025 16:13:49 +0100 Subject: [PATCH 3/4] build: add evm_version --- foundry.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/foundry.toml b/foundry.toml index 8293fcc6..9386a445 100644 --- a/foundry.toml +++ b/foundry.toml @@ -6,6 +6,7 @@ via-ir = true optimizer = true optimizer_runs = 999999 bytecode_hash = "none" +evm_version = "paris" [profile.default.invariant] runs = 16 From 9b955b1f08078a2cd65a9c452d520ee0c701c7d8 Mon Sep 17 00:00:00 2001 From: MathisGD <74971347+MathisGD@users.noreply.github.com> Date: Mon, 13 Jan 2025 18:25:40 +0100 Subject: [PATCH 4/4] Update foundry.toml Co-authored-by: Quentin Garchery Signed-off-by: MathisGD <74971347+MathisGD@users.noreply.github.com> --- foundry.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foundry.toml b/foundry.toml index 9386a445..7242cf4a 100644 --- a/foundry.toml +++ b/foundry.toml @@ -2,7 +2,7 @@ libs = ["lib"] names = true sizes = true -via-ir = true +via_ir = true optimizer = true optimizer_runs = 999999 bytecode_hash = "none"