Skip to content

Commit

Permalink
Merge pull request #400 from morpho-org/build/optimizer
Browse files Browse the repository at this point in the history
build: update optimizer
  • Loading branch information
MerlinEgalite authored Jan 3, 2024
2 parents 5203ca9 + 3662838 commit 9c4f313
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ fs_permissions = [
{ access = "read", path = "./lib/morpho-blue/out/"}
]
libs = ["lib"]
optimization_runs = 999999 # Etherscan does not support verifying contracts with more optimization runs.

[profile.default.fuzz]
runs = 16
Expand All @@ -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
4 changes: 2 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const config: HardhatUserConfig = {
settings: {
optimizer: {
enabled: true,
runs: 200,
runs: 80000,
},
viaIR: true,
},
Expand All @@ -49,7 +49,7 @@ const config: HardhatUserConfig = {
settings: {
optimizer: {
enabled: true,
runs: 200,
runs: 80000,
},
viaIR: true,
},
Expand Down

0 comments on commit 9c4f313

Please sign in to comment.