Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update test values to cancun #9344

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions crates/forge/tests/cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ forgetest!(initcode_size_exceeds_limit, |prj, cmd| {
str![[r#"
{
"HugeContract":{
"runtime_size":202,
"init_size":49359,
"runtime_margin":24374,
"init_margin":-207
"runtime_size":194,
"init_size":49344,
"runtime_margin":24382,
"init_margin":-192
}
}
"#]]
Expand All @@ -117,10 +117,10 @@ forgetest!(initcode_size_limit_can_be_ignored, |prj, cmd| {
str![[r#"
{
"HugeContract": {
"runtime_size": 202,
"init_size": 49359,
"runtime_margin": 24374,
"init_margin": -207
"runtime_size": 194,
"init_size": 49344,
"runtime_margin": 24382,
"init_margin": -192
}
}
"#]]
Expand Down
110 changes: 55 additions & 55 deletions crates/forge/tests/cli/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2460,35 +2460,35 @@ contract GasReportFallbackTest is Test {
Ran 1 test for test/DelegateProxyTest.sol:GasReportFallbackTest
[PASS] test_fallback_gas_report() ([GAS])
Traces:
[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]
[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]
│ │ └─ ← [Stop]
│ └─ ← [Return]
├─ [21160] DelegateProxy::deposit()
├─ [21159] DelegateProxy::deposit()
│ └─ ← [Stop]
└─ ← [Stop]

Suite result: ok. 1 passed; 0 failed; 0 skipped; [ELAPSED]
| test/DelegateProxyTest.sol:DelegateProxy contract | | | | | |
|---------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 108698 | 315 | | | | |
| 107054 | 300 | | | | |
| Function Name | min | avg | median | max | # calls |
| deposit | 21160 | 21160 | 21160 | 21160 | 1 |
| fallback | 29396 | 29396 | 29396 | 29396 | 1 |
| deposit | 21159 | 21159 | 21159 | 21159 | 1 |
| fallback | 29384 | 29384 | 29384 | 29384 | 1 |


| test/DelegateProxyTest.sol:ProxiedContract contract | | | | | |
|-----------------------------------------------------|-----------------|------|--------|------|---------|
| Deployment Cost | Deployment Size | | | | |
| 106511 | 276 | | | | |
| 104475 | 263 | | | | |
| Function Name | min | avg | median | max | # calls |
| deposit | 3320 | 3320 | 3320 | 3320 | 1 |
| deposit | 3316 | 3316 | 3316 | 3316 | 1 |
...

"#]]);
Expand All @@ -2502,39 +2502,39 @@ Suite result: ok. 1 passed; 0 failed; 0 skipped; [ELAPSED]
{
"contract": "test/DelegateProxyTest.sol:DelegateProxy",
"deployment": {
"gas": 108698,
"size": 315
"gas": 107054,
"size": 300
},
"functions": {
"deposit()": {
"calls": 1,
"min": 21160,
"mean": 21160,
"median": 21160,
"max": 21160
"min": 21159,
"mean": 21159,
"median": 21159,
"max": 21159
},
"fallback()": {
"calls": 1,
"min": 29396,
"mean": 29396,
"median": 29396,
"max": 29396
"min": 29384,
"mean": 29384,
"median": 29384,
"max": 29384
}
}
},
{
"contract": "test/DelegateProxyTest.sol:ProxiedContract",
"deployment": {
"gas": 106511,
"size": 276
"gas": 104475,
"size": 263
},
"functions": {
"deposit(uint256)": {
"calls": 1,
"min": 3320,
"mean": 3320,
"median": 3320,
"max": 3320
"min": 3316,
"mean": 3316,
"median": 3316,
"max": 3316
}
}
}
Expand Down Expand Up @@ -2588,25 +2588,25 @@ Suite result: ok. 1 passed; 0 failed; 0 skipped; [ELAPSED]
| test/NestedDeployTest.sol:AnotherChild contract | | | | | |
|-------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 0 | 130 | | | | |
| 0 | 124 | | | | |
| Function Name | min | avg | median | max | # calls |
| w | 21162 | 21162 | 21162 | 21162 | 1 |
| w | 21161 | 21161 | 21161 | 21161 | 1 |


| test/NestedDeployTest.sol:Child contract | | | | | |
|------------------------------------------|-----------------|-----|--------|-----|---------|
| Deployment Cost | Deployment Size | | | | |
| 0 | 498 | | | | |
| 0 | 477 | | | | |
| Function Name | min | avg | median | max | # calls |
| child | 325 | 325 | 325 | 325 | 1 |
| child | 323 | 323 | 323 | 323 | 1 |


| test/NestedDeployTest.sol:Parent contract | | | | | |
|-------------------------------------------|-----------------|-----|--------|-----|---------|
| Deployment Cost | Deployment Size | | | | |
| 254857 | 770 | | | | |
| 251997 | 739 | | | | |
| Function Name | min | avg | median | max | # calls |
| child | 182 | 182 | 182 | 182 | 1 |
| child | 181 | 181 | 181 | 181 | 1 |
...
"#]]);

Expand All @@ -2620,47 +2620,47 @@ Suite result: ok. 1 passed; 0 failed; 0 skipped; [ELAPSED]
"contract": "test/NestedDeployTest.sol:AnotherChild",
"deployment": {
"gas": 0,
"size": 130
"size": 124
},
"functions": {
"w()": {
"calls": 1,
"min": 21162,
"mean": 21162,
"median": 21162,
"max": 21162
"min": 21161,
"mean": 21161,
"median": 21161,
"max": 21161
}
}
},
{
"contract": "test/NestedDeployTest.sol:Child",
"deployment": {
"gas": 0,
"size": 498
"size": 477
},
"functions": {
"child()": {
"calls": 1,
"min": 325,
"mean": 325,
"median": 325,
"max": 325
"min": 323,
"mean": 323,
"median": 323,
"max": 323
}
}
},
{
"contract": "test/NestedDeployTest.sol:Parent",
"deployment": {
"gas": 254857,
"size": 770
"gas": 251997,
"size": 739
},
"functions": {
"child()": {
"calls": 1,
"min": 182,
"mean": 182,
"median": 182,
"max": 182
"min": 181,
"mean": 181,
"median": 181,
"max": 181
}
}
}
Expand Down Expand Up @@ -2982,10 +2982,10 @@ Compiler run successful!
str![[r#"
{
"Counter": {
"runtime_size": 247,
"init_size": 277,
"runtime_margin": 24329,
"init_margin": 48875
"runtime_size": 236,
"init_size": 263,
"runtime_margin": 24340,
"init_margin": 48889
}
}
"#]]
Expand Down
Loading