Skip to content

Commit 36ad53f

Browse files
committed
Fixes
1 parent f926c84 commit 36ad53f

File tree

4 files changed

+22
-35
lines changed

4 files changed

+22
-35
lines changed

crates/forge/tests/cli/cmd.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2677,7 +2677,7 @@ contract GasReportFallbackTest is Test {
26772677
+========================================================================================================+
26782678
| Deployment Cost | Deployment Size | | | | |
26792679
|---------------------------------------------------+-----------------+-------+--------+-------+---------|
2680-
| 117171 | 471 | | | | |
2680+
| 117159 | 471 | | | | |
26812681
|---------------------------------------------------+-----------------+-------+--------+-------+---------|
26822682
| | | | | | |
26832683
|---------------------------------------------------+-----------------+-------+--------+-------+---------|
@@ -2716,7 +2716,7 @@ Ran 1 test suite [ELAPSED]: 1 tests passed, 0 failed, 0 skipped (1 total tests)
27162716
{
27172717
"contract": "test/DelegateProxyTest.sol:DelegateProxy",
27182718
"deployment": {
2719-
"gas": 117171,
2719+
"gas": 117159,
27202720
"size": 471
27212721
},
27222722
"functions": {
@@ -2928,7 +2928,7 @@ contract NestedDeploy is Test {
29282928
+============================================================================================+
29292929
| Deployment Cost | Deployment Size | | | | |
29302930
|-------------------------------------------+-----------------+-----+--------+-----+---------|
2931-
| 328961 | 1163 | | | | |
2931+
| 328949 | 1163 | | | | |
29322932
|-------------------------------------------+-----------------+-----+--------+-----+---------|
29332933
| | | | | | |
29342934
|-------------------------------------------+-----------------+-----+--------+-----+---------|
@@ -2983,7 +2983,7 @@ Ran 1 test suite [ELAPSED]: 1 tests passed, 0 failed, 0 skipped (1 total tests)
29832983
{
29842984
"contract": "test/NestedDeployTest.sol:Parent",
29852985
"deployment": {
2986-
"gas": 328961,
2986+
"gas": 328949,
29872987
"size": 1163
29882988
},
29892989
"functions": {
@@ -3670,15 +3670,15 @@ forgetest_init!(gas_report_include_tests, |prj, cmd| {
36703670
+================================================================================================+
36713671
| Deployment Cost | Deployment Size | | | | |
36723672
|-----------------------------------------+-----------------+--------+--------+--------+---------|
3673-
| 1545498 | 7578 | | | | |
3673+
| 1544498 | 7573 | | | | |
36743674
|-----------------------------------------+-----------------+--------+--------+--------+---------|
36753675
| | | | | | |
36763676
|-----------------------------------------+-----------------+--------+--------+--------+---------|
36773677
| Function Name | Min | Avg | Median | Max | # Calls |
36783678
|-----------------------------------------+-----------------+--------+--------+--------+---------|
36793679
| setUp | 218902 | 218902 | 218902 | 218902 | 1 |
36803680
|-----------------------------------------+-----------------+--------+--------+--------+---------|
3681-
| test_Increment | 54915 | 54915 | 54915 | 54915 | 1 |
3681+
| test_Increment | 51847 | 51847 | 51847 | 51847 | 1 |
36823682
╰-----------------------------------------+-----------------+--------+--------+--------+---------╯
36833683
36843684
@@ -3725,8 +3725,8 @@ Ran 1 test suite [ELAPSED]: 1 tests passed, 0 failed, 0 skipped (1 total tests)
37253725
{
37263726
"contract": "test/Counter.t.sol:CounterTest",
37273727
"deployment": {
3728-
"gas": 1545498,
3729-
"size": 7578
3728+
"gas": 1544498,
3729+
"size": 7573
37303730
},
37313731
"functions": {
37323732
"setUp()": {
@@ -3738,10 +3738,10 @@ Ran 1 test suite [ELAPSED]: 1 tests passed, 0 failed, 0 skipped (1 total tests)
37383738
},
37393739
"test_Increment()": {
37403740
"calls": 1,
3741-
"min": 54915,
3742-
"mean": 54915,
3743-
"median": 54915,
3744-
"max": 54915
3741+
"min": 51847,
3742+
"mean": 51847,
3743+
"median": 51847,
3744+
"max": 51847
37453745
}
37463746
}
37473747
}

crates/forge/tests/cli/test_cmd.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2912,15 +2912,13 @@ Traces:
29122912
│ └─ ← [Stop]
29132913
└─ ← [Stop]
29142914
2915-
[31851] CounterTest::test_Increment()
2915+
[28783] CounterTest::test_Increment()
29162916
├─ [22418] Counter::increment()
29172917
│ ├─ storage changes:
29182918
│ │ @ 0: 0 → 1
29192919
│ └─ ← [Stop]
29202920
├─ [424] Counter::number() [staticcall]
29212921
│ └─ ← [Return] 1
2922-
├─ [0] VM::assertEq(1, 1) [staticcall]
2923-
│ └─ ← [Return]
29242922
└─ ← [Stop]
29252923
29262924
Suite result: ok. 1 passed; 0 failed; 0 skipped; [ELAPSED]
@@ -3056,7 +3054,7 @@ Traces:
30563054
│ └─ ← [Stop]
30573055
└─ ← [Stop]
30583056
3059-
[35178] SuppressTracesTest::test_increment_failure()
3057+
[35200] SuppressTracesTest::test_increment_failure()
30603058
├─ [0] console::log("test increment failure") [staticcall]
30613059
│ └─ ← [Stop]
30623060
├─ [22418] Counter::increment()
@@ -3101,7 +3099,7 @@ Traces:
31013099
│ └─ ← [Stop]
31023100
└─ ← [Stop]
31033101
3104-
[35178] SuppressTracesTest::test_increment_failure()
3102+
[35200] SuppressTracesTest::test_increment_failure()
31053103
├─ [0] console::log("test increment failure") [staticcall]
31063104
│ └─ ← [Stop]
31073105
├─ [22418] Counter::increment()
@@ -3117,15 +3115,13 @@ Logs:
31173115
test increment success
31183116
31193117
Traces:
3120-
[35229] SuppressTracesTest::test_increment_success()
3118+
[32164] SuppressTracesTest::test_increment_success()
31213119
├─ [0] console::log("test increment success") [staticcall]
31223120
│ └─ ← [Stop]
31233121
├─ [22418] Counter::increment()
31243122
│ └─ ← [Stop]
31253123
├─ [424] Counter::number() [staticcall]
31263124
│ └─ ← [Return] 1
3127-
├─ [0] VM::assertEq(1, 1) [staticcall]
3128-
│ └─ ← [Return]
31293125
└─ ← [Stop]
31303126
31313127
Suite result: FAILED. 1 passed; 1 failed; 0 skipped; [ELAPSED]
@@ -3932,8 +3928,6 @@ Traces:
39323928
│ └─ ← [Stop]
39333929
├─ [..] Counter::number() [staticcall]
39343930
│ └─ ← [Return] 1
3935-
├─ [0] VM::assertEq(1, 1) [staticcall]
3936-
│ └─ ← [Return]
39373931
├─ storage changes:
39383932
│ @ 31: 0x00000000000000000000006cdbd1b486b8fbd4140e8cd6daaed05be13ed91401 → 0x0000000000000000000000c4b957cd61beb9b9afd76204b30683edaaab51ec01
39393933
└─ ← [Stop]

crates/forge/tests/cli/test_optimizer.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1401,8 +1401,6 @@ Traces:
14011401
├─ [..] Counter::number() [staticcall]
14021402
│ └─ ← [Return] 1
14031403
├─ [..] StdAssertions::assertEq(1, 1)
1404-
│ ├─ [0] VM::assertEq(1, 1) [staticcall]
1405-
│ │ └─ ← [Return]
14061404
│ └─ ←
14071405
└─ ← [Stop]
14081406

crates/forge/tests/fixtures/colored_traces.svg

Lines changed: 6 additions & 11 deletions
Loading

0 commit comments

Comments
 (0)