diff --git a/crates/forge/tests/cli/build.rs b/crates/forge/tests/cli/build.rs index 9585b216b159..51c358612e86 100644 --- a/crates/forge/tests/cli/build.rs +++ b/crates/forge/tests/cli/build.rs @@ -87,10 +87,10 @@ forgetest!(initcode_size_exceeds_limit, |prj, cmd| { str![[r#" { "HugeContract":{ - "runtime_size":194, - "init_size":49344, - "runtime_margin":24382, - "init_margin":-192 + "runtime_size":202, + "init_size":49359, + "runtime_margin":24374, + "init_margin":-207 } } "#]] @@ -117,10 +117,10 @@ forgetest!(initcode_size_limit_can_be_ignored, |prj, cmd| { str![[r#" { "HugeContract": { - "runtime_size": 194, - "init_size": 49344, - "runtime_margin": 24382, - "init_margin": -192 + "runtime_size": 202, + "init_size": 49359, + "runtime_margin": 24374, + "init_margin": -207 } } "#]] diff --git a/crates/forge/tests/cli/cmd.rs b/crates/forge/tests/cli/cmd.rs index 3cd4ae5edb04..18f0327f6e90 100644 --- a/crates/forge/tests/cli/cmd.rs +++ b/crates/forge/tests/cli/cmd.rs @@ -2460,16 +2460,16 @@ contract GasReportFallbackTest is Test { Ran 1 test for test/DelegateProxyTest.sol:GasReportFallbackTest [PASS] test_fallback_gas_report() ([GAS]) Traces: - [327404] GasReportFallbackTest::test_fallback_gas_report() - ├─ [104475] → new ProxiedContract@[..] - │ └─ ← [Return] 236 bytes of code - ├─ [107054] → new DelegateProxy@[..] - │ └─ ← [Return] 135 bytes of code - ├─ [29384] DelegateProxy::fallback(100) - │ ├─ [3316] ProxiedContract::deposit(100) [delegatecall] + [331067] GasReportFallbackTest::test_fallback_gas_report() + ├─ [106511] → new ProxiedContract@[..] + │ └─ ← [Return] 246 bytes of code + ├─ [108698] → new DelegateProxy@[..] + │ └─ ← [Return] 143 bytes of code + ├─ [29396] DelegateProxy::fallback(100) + │ ├─ [3320] ProxiedContract::deposit(100) [delegatecall] │ │ └─ ← [Stop] │ └─ ← [Return] - ├─ [21159] DelegateProxy::deposit() + ├─ [21160] DelegateProxy::deposit() │ └─ ← [Stop] └─ ← [Stop] @@ -2477,18 +2477,18 @@ Suite result: ok. 1 passed; 0 failed; 0 skipped; [ELAPSED] | test/DelegateProxyTest.sol:DelegateProxy contract | | | | | | |---------------------------------------------------|-----------------|-------|--------|-------|---------| | Deployment Cost | Deployment Size | | | | | -| 107054 | 300 | | | | | +| 108698 | 315 | | | | | | Function Name | min | avg | median | max | # calls | -| deposit | 21159 | 21159 | 21159 | 21159 | 1 | -| fallback | 29384 | 29384 | 29384 | 29384 | 1 | +| deposit | 21160 | 21160 | 21160 | 21160 | 1 | +| fallback | 29396 | 29396 | 29396 | 29396 | 1 | | test/DelegateProxyTest.sol:ProxiedContract contract | | | | | | |-----------------------------------------------------|-----------------|------|--------|------|---------| | Deployment Cost | Deployment Size | | | | | -| 104475 | 263 | | | | | +| 106511 | 276 | | | | | | Function Name | min | avg | median | max | # calls | -| deposit | 3316 | 3316 | 3316 | 3316 | 1 | +| deposit | 3320 | 3320 | 3320 | 3320 | 1 | ... "#]]); @@ -2502,39 +2502,39 @@ Suite result: ok. 1 passed; 0 failed; 0 skipped; [ELAPSED] { "contract": "test/DelegateProxyTest.sol:DelegateProxy", "deployment": { - "gas": 107054, - "size": 300 + "gas": 108698, + "size": 315 }, "functions": { "deposit()": { "calls": 1, - "min": 21159, - "mean": 21159, - "median": 21159, - "max": 21159 + "min": 21160, + "mean": 21160, + "median": 21160, + "max": 21160 }, "fallback()": { "calls": 1, - "min": 29384, - "mean": 29384, - "median": 29384, - "max": 29384 + "min": 29396, + "mean": 29396, + "median": 29396, + "max": 29396 } } }, { "contract": "test/DelegateProxyTest.sol:ProxiedContract", "deployment": { - "gas": 104475, - "size": 263 + "gas": 106511, + "size": 276 }, "functions": { "deposit(uint256)": { "calls": 1, - "min": 3316, - "mean": 3316, - "median": 3316, - "max": 3316 + "min": 3320, + "mean": 3320, + "median": 3320, + "max": 3320 } } } @@ -2588,25 +2588,25 @@ Suite result: ok. 1 passed; 0 failed; 0 skipped; [ELAPSED] | test/NestedDeployTest.sol:AnotherChild contract | | | | | | |-------------------------------------------------|-----------------|-------|--------|-------|---------| | Deployment Cost | Deployment Size | | | | | -| 0 | 124 | | | | | +| 0 | 130 | | | | | | Function Name | min | avg | median | max | # calls | -| w | 21161 | 21161 | 21161 | 21161 | 1 | +| w | 21162 | 21162 | 21162 | 21162 | 1 | | test/NestedDeployTest.sol:Child contract | | | | | | |------------------------------------------|-----------------|-----|--------|-----|---------| | Deployment Cost | Deployment Size | | | | | -| 0 | 477 | | | | | +| 0 | 498 | | | | | | Function Name | min | avg | median | max | # calls | -| child | 323 | 323 | 323 | 323 | 1 | +| child | 325 | 325 | 325 | 325 | 1 | | test/NestedDeployTest.sol:Parent contract | | | | | | |-------------------------------------------|-----------------|-----|--------|-----|---------| | Deployment Cost | Deployment Size | | | | | -| 251997 | 739 | | | | | +| 254857 | 770 | | | | | | Function Name | min | avg | median | max | # calls | -| child | 181 | 181 | 181 | 181 | 1 | +| child | 182 | 182 | 182 | 182 | 1 | ... "#]]); @@ -2620,15 +2620,15 @@ Suite result: ok. 1 passed; 0 failed; 0 skipped; [ELAPSED] "contract": "test/NestedDeployTest.sol:AnotherChild", "deployment": { "gas": 0, - "size": 124 + "size": 130 }, "functions": { "w()": { "calls": 1, - "min": 21161, - "mean": 21161, - "median": 21161, - "max": 21161 + "min": 21162, + "mean": 21162, + "median": 21162, + "max": 21162 } } }, @@ -2636,31 +2636,31 @@ Suite result: ok. 1 passed; 0 failed; 0 skipped; [ELAPSED] "contract": "test/NestedDeployTest.sol:Child", "deployment": { "gas": 0, - "size": 477 + "size": 498 }, "functions": { "child()": { "calls": 1, - "min": 323, - "mean": 323, - "median": 323, - "max": 323 + "min": 325, + "mean": 325, + "median": 325, + "max": 325 } } }, { "contract": "test/NestedDeployTest.sol:Parent", "deployment": { - "gas": 251997, - "size": 739 + "gas": 254857, + "size": 770 }, "functions": { "child()": { "calls": 1, - "min": 181, - "mean": 181, - "median": 181, - "max": 181 + "min": 182, + "mean": 182, + "median": 182, + "max": 182 } } } @@ -2982,10 +2982,10 @@ Compiler run successful! str![[r#" { "Counter": { - "runtime_size": 236, - "init_size": 263, - "runtime_margin": 24340, - "init_margin": 48889 + "runtime_size": 247, + "init_size": 277, + "runtime_margin": 24329, + "init_margin": 48875 } } "#]]