@@ -1573,7 +1573,7 @@ forgetest!(gas_report_all_contracts, |prj, cmd| {
15731573
15741574 // report for all
15751575 prj. write_config( Config {
1576- optimizer: true ,
1576+ optimizer: Some ( true ) ,
15771577 gas_reports: ( vec![ "*" . to_string( ) ] ) ,
15781578 gas_reports_ignore: ( vec![ ] ) ,
15791579 ..Default :: default ( )
@@ -1683,7 +1683,7 @@ Ran 3 test suites [ELAPSED]: 3 tests passed, 0 failed, 0 skipped (3 total tests)
16831683 . is_json( ) ,
16841684 ) ;
16851685
1686- prj. write_config( Config { optimizer: true , gas_reports: ( vec![ ] ) , ..Default :: default ( ) } ) ;
1686+ prj. write_config( Config { optimizer: Some ( true ) , gas_reports: ( vec![ ] ) , ..Default :: default ( ) } ) ;
16871687 cmd. forge_fuse( ) . arg( "test" ) . arg( "--gas-report" ) . assert_success( ) . stdout_eq( str ![ [ r#"
16881688...
16891689╭----------------------------------------+-----------------+-------+--------+-------+---------╮
@@ -1789,7 +1789,7 @@ Ran 3 test suites [ELAPSED]: 3 tests passed, 0 failed, 0 skipped (3 total tests)
17891789 ) ;
17901790
17911791 prj. write_config( Config {
1792- optimizer: true ,
1792+ optimizer: Some ( true ) ,
17931793 gas_reports: ( vec![ "*" . to_string( ) ] ) ,
17941794 ..Default :: default ( )
17951795 } ) ;
@@ -1898,7 +1898,7 @@ Ran 3 test suites [ELAPSED]: 3 tests passed, 0 failed, 0 skipped (3 total tests)
18981898 ) ;
18991899
19001900 prj. write_config( Config {
1901- optimizer: true ,
1901+ optimizer: Some ( true ) ,
19021902 gas_reports: ( vec![
19031903 "ContractOne" . to_string( ) ,
19041904 "ContractTwo" . to_string( ) ,
@@ -2017,7 +2017,7 @@ forgetest!(gas_report_some_contracts, |prj, cmd| {
20172017
20182018 // report for One
20192019 prj. write_config( Config {
2020- optimizer: true ,
2020+ optimizer: Some ( true ) ,
20212021 gas_reports: vec![ "ContractOne" . to_string( ) ] ,
20222022 ..Default :: default ( )
20232023 } ) ;
@@ -2068,7 +2068,7 @@ Ran 3 test suites [ELAPSED]: 3 tests passed, 0 failed, 0 skipped (3 total tests)
20682068
20692069 // report for Two
20702070 prj. write_config( Config {
2071- optimizer: true ,
2071+ optimizer: Some ( true ) ,
20722072 gas_reports: vec![ "ContractTwo" . to_string( ) ] ,
20732073 ..Default :: default ( )
20742074 } ) ;
@@ -2119,7 +2119,7 @@ Ran 3 test suites [ELAPSED]: 3 tests passed, 0 failed, 0 skipped (3 total tests)
21192119
21202120 // report for Three
21212121 prj. write_config( Config {
2122- optimizer: true ,
2122+ optimizer: Some ( true ) ,
21232123 gas_reports: vec![ "ContractThree" . to_string( ) ] ,
21242124 ..Default :: default ( )
21252125 } ) ;
@@ -2175,7 +2175,7 @@ forgetest!(gas_report_ignore_some_contracts, |prj, cmd| {
21752175
21762176 // ignore ContractOne
21772177 prj. write_config( Config {
2178- optimizer: true ,
2178+ optimizer: Some ( true ) ,
21792179 gas_reports: ( vec![ "*" . to_string( ) ] ) ,
21802180 gas_reports_ignore: ( vec![ "ContractOne" . to_string( ) ] ) ,
21812181 ..Default :: default ( )
@@ -2258,7 +2258,7 @@ Ran 3 test suites [ELAPSED]: 3 tests passed, 0 failed, 0 skipped (3 total tests)
22582258 // ignore ContractTwo
22592259 cmd. forge_fuse( ) ;
22602260 prj. write_config( Config {
2261- optimizer: true ,
2261+ optimizer: Some ( true ) ,
22622262 gas_reports: ( vec![ ] ) ,
22632263 gas_reports_ignore: ( vec![ "ContractTwo" . to_string( ) ] ) ,
22642264 ..Default :: default ( )
@@ -2345,7 +2345,7 @@ Ran 3 test suites [ELAPSED]: 3 tests passed, 0 failed, 0 skipped (3 total tests)
23452345 // indicating the "double listing".
23462346 cmd. forge_fuse( ) ;
23472347 prj. write_config( Config {
2348- optimizer: true ,
2348+ optimizer: Some ( true ) ,
23492349 gas_reports: ( vec![
23502350 "ContractOne" . to_string( ) ,
23512351 "ContractTwo" . to_string( ) ,
@@ -2479,7 +2479,7 @@ Warning: ContractThree is listed in both 'gas_reports' and 'gas_reports_ignore'.
24792479} ) ;
24802480
24812481forgetest ! ( gas_report_flatten_multiple_selectors, |prj, cmd| {
2482- prj. write_config( Config { optimizer: true , ..Default :: default ( ) } ) ;
2482+ prj. write_config( Config { optimizer: Some ( true ) , ..Default :: default ( ) } ) ;
24832483 prj. insert_ds_test( ) ;
24842484 prj. add_source(
24852485 "Counter.sol" ,
@@ -2598,7 +2598,7 @@ Ran 1 test suite [ELAPSED]: 1 tests passed, 0 failed, 0 skipped (1 total tests)
25982598
25992599// <https://github.com/foundry-rs/foundry/issues/9115>
26002600forgetest_init ! ( gas_report_with_fallback, |prj, cmd| {
2601- prj. write_config( Config { optimizer: true , ..Default :: default ( ) } ) ;
2601+ prj. write_config( Config { optimizer: Some ( true ) , ..Default :: default ( ) } ) ;
26022602 prj. add_test(
26032603 "DelegateProxyTest.sol" ,
26042604 r#"
@@ -2742,7 +2742,7 @@ Ran 1 test suite [ELAPSED]: 1 tests passed, 0 failed, 0 skipped (1 total tests)
27422742
27432743// <https://github.com/foundry-rs/foundry/issues/9300>
27442744forgetest_init ! ( gas_report_size_for_nested_create, |prj, cmd| {
2745- prj. write_config( Config { optimizer: true , ..Default :: default ( ) } ) ;
2745+ prj. write_config( Config { optimizer: Some ( true ) , ..Default :: default ( ) } ) ;
27462746 prj. add_test(
27472747 "NestedDeployTest.sol" ,
27482748 r#"
@@ -3181,7 +3181,7 @@ Error: No source files found in specified build paths.
31813181
31823182// checks that build --sizes includes all contracts even if unchanged
31833183forgetest_init ! ( can_build_sizes_repeatedly, |prj, cmd| {
3184- prj. write_config( Config { optimizer: true , ..Default :: default ( ) } ) ;
3184+ prj. write_config( Config { optimizer: Some ( true ) , ..Default :: default ( ) } ) ;
31853185 prj. clear_cache( ) ;
31863186
31873187 cmd. args( [ "build" , "--sizes" ] ) . assert_success( ) . stdout_eq( str ![ [ r#"
@@ -3248,7 +3248,7 @@ interface Counter {
32483248// checks that `clean` also works with the "out" value set in Config
32493249forgetest_init ! ( gas_report_include_tests, |prj, cmd| {
32503250 prj. write_config( Config {
3251- optimizer: true ,
3251+ optimizer: Some ( true ) ,
32523252 gas_reports_include_tests: true ,
32533253 fuzz: FuzzConfig { runs: 1 , ..Default :: default ( ) } ,
32543254 ..Default :: default ( )
0 commit comments