From d90c11786f992d13fceb29a73e08f52638d9056e Mon Sep 17 00:00:00 2001 From: MerlinEgalite Date: Wed, 3 Jan 2024 09:49:04 +0100 Subject: [PATCH 1/3] build: update optimizer --- foundry.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foundry.toml b/foundry.toml index 3bd62b9c..ca0780bf 100644 --- a/foundry.toml +++ b/foundry.toml @@ -8,7 +8,7 @@ fs_permissions = [ { access = "read", path = "./lib/morpho-blue/out/"} ] libs = ["lib"] -optimization_runs = 999999 # Etherscan does not support verifying contracts with more optimization runs. +optimizer_runs = 999999 # Etherscan does not support verifying contracts with more optimization runs. [profile.default.fuzz] runs = 16 From 09c3ec402c992887a675f85b2ceb9fae2233f8fe Mon Sep 17 00:00:00 2001 From: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com> Date: Wed, 3 Jan 2024 11:49:30 +0100 Subject: [PATCH 2/3] docs: apply suggestion Co-authored-by: Quentin Garchery Signed-off-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com> --- foundry.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foundry.toml b/foundry.toml index ca0780bf..e45e2e2d 100644 --- a/foundry.toml +++ b/foundry.toml @@ -8,7 +8,7 @@ fs_permissions = [ { access = "read", path = "./lib/morpho-blue/out/"} ] libs = ["lib"] -optimizer_runs = 999999 # Etherscan does not support verifying contracts with more optimization runs. +optimizer_runs = 999999 # Etherscan does not support verifying contracts with more optimizer runs. [profile.default.fuzz] runs = 16 From 7259bed60f600b38f186f9eae6982b5099e3f35f Mon Sep 17 00:00:00 2001 From: MerlinEgalite Date: Wed, 3 Jan 2024 14:47:59 +0100 Subject: [PATCH 3/3] build: update opti runs --- foundry.toml | 4 ++-- hardhat.config.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/foundry.toml b/foundry.toml index ca0780bf..c981bed5 100644 --- a/foundry.toml +++ b/foundry.toml @@ -8,7 +8,6 @@ fs_permissions = [ { access = "read", path = "./lib/morpho-blue/out/"} ] libs = ["lib"] -optimizer_runs = 999999 # Etherscan does not support verifying contracts with more optimization runs. [profile.default.fuzz] runs = 16 @@ -26,10 +25,11 @@ wrap_comments = true via-ir = true test = "/dev/null" script = "/dev/null" +optimizer_runs = 80000 [profile.test] via-ir = false -# See more config options https://github.com/foundry-rs/foundry/tree/master/config +# See more config options https://github.com/foundry-rs/foundry/tree/master/crates/config diff --git a/hardhat.config.ts b/hardhat.config.ts index cefaf3a1..b19e0df3 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -39,7 +39,7 @@ const config: HardhatUserConfig = { settings: { optimizer: { enabled: true, - runs: 200, + runs: 80000, }, viaIR: true, }, @@ -49,7 +49,7 @@ const config: HardhatUserConfig = { settings: { optimizer: { enabled: true, - runs: 200, + runs: 80000, }, viaIR: true, },