Skip to content

Commit 2092450

Browse files
committed
Set tests/ported_static to be identical to fork/amsterdam in EOP 8037 branch
1 parent 468e5b2 commit 2092450

File tree

137 files changed

+146
-557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+146
-557
lines changed

tests/ported_static/stCallCodes/test_callcallcall_abcb_recursive.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
Alloc,
1414
Bytes,
1515
Environment,
16-
Fork,
1716
StateTestFiller,
1817
Transaction,
1918
)
20-
from execution_testing.forks import Amsterdam
2119
from execution_testing.vm import Op
2220

2321
REFERENCE_SPEC_GIT_PATH = "N/A"
@@ -31,7 +29,6 @@
3129
@pytest.mark.pre_alloc_mutable
3230
def test_callcallcall_abcb_recursive(
3331
state_test: StateTestFiller,
34-
fork: Fork,
3532
pre: Alloc,
3633
) -> None:
3734
"""Call -> call <-> call."""
@@ -115,7 +112,7 @@ def test_callcallcall_abcb_recursive(
115112
sender=sender,
116113
to=target,
117114
data=Bytes(""),
118-
gas_limit=2600000 if fork >= Amsterdam else 600000,
115+
gas_limit=600000,
119116
)
120117

121118
post = {

tests/ported_static/stCallCodes/test_callcallcallcode_abcb_recursive.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
Alloc,
1414
Bytes,
1515
Environment,
16-
Fork,
1716
StateTestFiller,
1817
Transaction,
1918
)
20-
from execution_testing.forks import Amsterdam
2119
from execution_testing.vm import Op
2220

2321
REFERENCE_SPEC_GIT_PATH = "N/A"
@@ -31,7 +29,6 @@
3129
@pytest.mark.pre_alloc_mutable
3230
def test_callcallcallcode_abcb_recursive(
3331
state_test: StateTestFiller,
34-
fork: Fork,
3532
pre: Alloc,
3633
) -> None:
3734
"""Call -> call <-> callcode."""
@@ -115,7 +112,7 @@ def test_callcallcallcode_abcb_recursive(
115112
sender=sender,
116113
to=target,
117114
data=Bytes(""),
118-
gas_limit=2600000 if fork >= Amsterdam else 600000,
115+
gas_limit=600000,
119116
)
120117

121118
post = {

tests/ported_static/stCallCodes/test_callcallcodecall_abcb_recursive.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
Alloc,
1414
Bytes,
1515
Environment,
16-
Fork,
1716
StateTestFiller,
1817
Transaction,
1918
)
20-
from execution_testing.forks import Amsterdam
2119
from execution_testing.vm import Op
2220

2321
REFERENCE_SPEC_GIT_PATH = "N/A"
@@ -31,7 +29,6 @@
3129
@pytest.mark.pre_alloc_mutable
3230
def test_callcallcodecall_abcb_recursive(
3331
state_test: StateTestFiller,
34-
fork: Fork,
3532
pre: Alloc,
3633
) -> None:
3734
"""Call -> callcode <-> call."""
@@ -115,7 +112,7 @@ def test_callcallcodecall_abcb_recursive(
115112
sender=sender,
116113
to=target,
117114
data=Bytes(""),
118-
gas_limit=2600000 if fork >= Amsterdam else 600000,
115+
gas_limit=600000,
119116
)
120117

121118
post = {

tests/ported_static/stCallCodes/test_callcallcodecallcode_abcb_recursive.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
Alloc,
1414
Bytes,
1515
Environment,
16-
Fork,
1716
StateTestFiller,
1817
Transaction,
1918
)
20-
from execution_testing.forks import Amsterdam
2119
from execution_testing.vm import Op
2220

2321
REFERENCE_SPEC_GIT_PATH = "N/A"
@@ -31,7 +29,6 @@
3129
@pytest.mark.pre_alloc_mutable
3230
def test_callcallcodecallcode_abcb_recursive(
3331
state_test: StateTestFiller,
34-
fork: Fork,
3532
pre: Alloc,
3633
) -> None:
3734
"""Call -> callcode <-> callcode."""
@@ -115,7 +112,7 @@ def test_callcallcodecallcode_abcb_recursive(
115112
sender=sender,
116113
to=target,
117114
data=Bytes(""),
118-
gas_limit=2600000 if fork >= Amsterdam else 600000,
115+
gas_limit=600000,
119116
)
120117

121118
post = {

tests/ported_static/stCallCodes/test_callcodecallcall_abcb_recursive.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
Alloc,
1414
Bytes,
1515
Environment,
16-
Fork,
1716
StateTestFiller,
1817
Transaction,
1918
)
20-
from execution_testing.forks import Amsterdam
2119
from execution_testing.vm import Op
2220

2321
REFERENCE_SPEC_GIT_PATH = "N/A"
@@ -31,7 +29,6 @@
3129
@pytest.mark.pre_alloc_mutable
3230
def test_callcodecallcall_abcb_recursive(
3331
state_test: StateTestFiller,
34-
fork: Fork,
3532
pre: Alloc,
3633
) -> None:
3734
"""CALLCODE -> CALL <-> CALL."""
@@ -115,7 +112,7 @@ def test_callcodecallcall_abcb_recursive(
115112
sender=sender,
116113
to=target,
117114
data=Bytes(""),
118-
gas_limit=2600000 if fork >= Amsterdam else 600000,
115+
gas_limit=600000,
119116
)
120117

121118
post = {

tests/ported_static/stCallCodes/test_callcodecallcallcode_abcb_recursive.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
Alloc,
1414
Bytes,
1515
Environment,
16-
Fork,
1716
StateTestFiller,
1817
Transaction,
1918
)
20-
from execution_testing.forks import Amsterdam
2119
from execution_testing.vm import Op
2220

2321
REFERENCE_SPEC_GIT_PATH = "N/A"
@@ -31,7 +29,6 @@
3129
@pytest.mark.pre_alloc_mutable
3230
def test_callcodecallcallcode_abcb_recursive(
3331
state_test: StateTestFiller,
34-
fork: Fork,
3532
pre: Alloc,
3633
) -> None:
3734
"""CALLCODE -> CALL <-> CALLCODE."""
@@ -115,7 +112,7 @@ def test_callcodecallcallcode_abcb_recursive(
115112
sender=sender,
116113
to=target,
117114
data=Bytes(""),
118-
gas_limit=2600000 if fork >= Amsterdam else 600000,
115+
gas_limit=600000,
119116
)
120117

121118
post = {

tests/ported_static/stCallCodes/test_callcodecallcodecall_abcb_recursive.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
Alloc,
1414
Bytes,
1515
Environment,
16-
Fork,
1716
StateTestFiller,
1817
Transaction,
1918
)
20-
from execution_testing.forks import Amsterdam
2119
from execution_testing.vm import Op
2220

2321
REFERENCE_SPEC_GIT_PATH = "N/A"
@@ -31,7 +29,6 @@
3129
@pytest.mark.pre_alloc_mutable
3230
def test_callcodecallcodecall_abcb_recursive(
3331
state_test: StateTestFiller,
34-
fork: Fork,
3532
pre: Alloc,
3633
) -> None:
3734
"""CALLCODE -> CALLCODE <-> CALL ."""
@@ -115,7 +112,7 @@ def test_callcodecallcodecall_abcb_recursive(
115112
sender=sender,
116113
to=target,
117114
data=Bytes(""),
118-
gas_limit=2600000 if fork >= Amsterdam else 600000,
115+
gas_limit=600000,
119116
)
120117

121118
post = {

tests/ported_static/stCallCodes/test_callcodecallcodecallcode_abcb_recursive.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
Alloc,
1414
Bytes,
1515
Environment,
16-
Fork,
1716
StateTestFiller,
1817
Transaction,
1918
)
20-
from execution_testing.forks import Amsterdam
2119
from execution_testing.vm import Op
2220

2321
REFERENCE_SPEC_GIT_PATH = "N/A"
@@ -33,7 +31,6 @@
3331
@pytest.mark.pre_alloc_mutable
3432
def test_callcodecallcodecallcode_abcb_recursive(
3533
state_test: StateTestFiller,
36-
fork: Fork,
3734
pre: Alloc,
3835
) -> None:
3936
"""CALLCODE -> CALLCODE2 -> CALLCODE3 -> CALLCODE2 -> ."""
@@ -117,7 +114,7 @@ def test_callcodecallcodecallcode_abcb_recursive(
117114
sender=sender,
118115
to=target,
119116
data=Bytes(""),
120-
gas_limit=2600000 if fork >= Amsterdam else 600000,
117+
gas_limit=600000,
121118
)
122119

123120
post = {

tests/ported_static/stCallCreateCallCodeTest/test_call_lose_gas_oog.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@
1313
Alloc,
1414
Bytes,
1515
Environment,
16-
Fork,
1716
StateTestFiller,
1817
Transaction,
1918
)
20-
from execution_testing.forks import Amsterdam
2119
from execution_testing.vm import Op
2220

2321
REFERENCE_SPEC_GIT_PATH = "N/A"
@@ -31,7 +29,6 @@
3129
@pytest.mark.pre_alloc_mutable
3230
def test_call_lose_gas_oog(
3331
state_test: StateTestFiller,
34-
fork: Fork,
3532
pre: Alloc,
3633
) -> None:
3734
"""Recursive call."""
@@ -81,7 +78,7 @@ def test_call_lose_gas_oog(
8178
sender=sender,
8279
to=target,
8380
data=Bytes(""),
84-
gas_limit=2200000 if fork >= Amsterdam else 200000,
81+
gas_limit=200000,
8582
value=10,
8683
)
8784

tests/ported_static/stCallCreateCallCodeTest/test_create_js_no_collision.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@
1313
Alloc,
1414
Bytes,
1515
Environment,
16-
Fork,
1716
StateTestFiller,
1817
Transaction,
1918
compute_create_address,
2019
)
21-
from execution_testing.forks import Amsterdam
2220

2321
REFERENCE_SPEC_GIT_PATH = "N/A"
2422
REFERENCE_SPEC_VERSION = "N/A"
@@ -31,7 +29,6 @@
3129
@pytest.mark.pre_alloc_mutable
3230
def test_create_js_no_collision(
3331
state_test: StateTestFiller,
34-
fork: Fork,
3532
pre: Alloc,
3633
) -> None:
3734
"""Deploy legacy contract normally."""
@@ -46,7 +43,7 @@ def test_create_js_no_collision(
4643
timestamp=1000,
4744
prev_randao=0x20000,
4845
base_fee_per_gas=10,
49-
gas_limit=3000000 if fork >= Amsterdam else 1000000,
46+
gas_limit=1000000,
5047
)
5148

5249
pre[sender] = Account(balance=0x9184E72A000)
@@ -57,7 +54,7 @@ def test_create_js_no_collision(
5754
data=Bytes(
5855
"60406103ca600439600451602451336000819055506000600481905550816001819055508060028190555042600581905550336003819055505050610381806100496000396000f30060003560e060020a9004806343d726d61461004257806391b7f5ed14610050578063d686f9ee14610061578063f5bade661461006f578063fcfff16f1461008057005b61004a6101de565b60006000f35b61005b6004356100bf565b60006000f35b610069610304565b60006000f35b61007a60043561008e565b60006000f35b6100886100f0565b60006000f35b600054600160a060020a031633600160a060020a031614156100af576100b4565b6100bc565b806001819055505b50565b600054600160a060020a031633600160a060020a031614156100e0576100e5565b6100ed565b806002819055505b50565b600054600160a060020a031633600160a060020a031614806101255750600354600160a060020a031633600160a060020a0316145b61012e57610161565b60016004819055507f59ebeb90bc63057b6515673c3ecf9438e5058bca0f92585014eced636878c9a560006000a16101dc565b60045460011480610173575060015434105b6101b85760016004819055507f59ebeb90bc63057b6515673c3ecf9438e5058bca0f92585014eced636878c9a560006000a142600581905550336003819055506101db565b33600160a060020a03166000346000600060006000848787f16101d757005b5050505b5b565b60006004546000146101ef576101f4565b610301565b600054600160a060020a031633600160a060020a031614801561022c5750600054600160a060020a0316600354600160a060020a0316145b61023557610242565b6000600481905550610301565b600354600160a060020a031633600160a060020a03161461026257610300565b600554420360025402905060015481116102c757600354600160a060020a0316600082600154036000600060006000848787f161029b57005b505050600054600160a060020a03166000826000600060006000848787f16102bf57005b5050506102ee565b600054600160a060020a031660006001546000600060006000848787f16102ea57005b5050505b60006004819055506000546003819055505b5b50565b6000600054600160a060020a031633600160a060020a031614156103275761032c565b61037e565b600554420360025402905060015481116103455761037d565b600054600160a060020a031660006001546000600060006000848787f161036857005b50505060006004819055506000546003819055505b5b505600000000000000000000000000000000000000000000000000000000000000420000000000000000000000000000000000000000000000000000000000000023" # noqa: E501
5956
),
60-
gas_limit=2600000 if fork >= Amsterdam else 600000,
57+
gas_limit=600000,
6158
value=0x186A0,
6259
)
6360

0 commit comments

Comments
 (0)