Skip to content

Commit 5a23fa3

Browse files
committed
Fix breaking change from Foundry v1
Foundry v1 disables optimizer by default. Hence, this commit enables this: https://book.getfoundry.sh/guides/v1.0-migration#solc-optimizer-disabled-by-default
1 parent dc4233b commit 5a23fa3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

foundry.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ solc-version = "0.8.19"
66
# Reason for why this flag is required can be found here: https://github.com/foundry-rs/foundry/issues/7607
77
unchecked_cheatcode_artifacts = true
88
# Reasons for why this flag is required can be found here: https://book.getfoundry.sh/cheatcodes/expect-revert#description
9-
allow_internal_expect_revert = true
9+
allow_internal_expect_revert = true
10+
# Required because of a breaking change in Foundry v1, which disabled optimizer by default: https://book.getfoundry.sh/guides/v1.0-migration#solc-optimizer-disabled-by-default
11+
optimizer = true
12+
optimizer_runs = 200

0 commit comments

Comments
 (0)