Skip to content

Commit 4f64795

Browse files
committed
code chunk stride overflow tests
1 parent 9678dba commit 4f64795

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

tests/verkle/eip7748/accounts.py

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def __init__(self, code_length: int, storage_slot_count: int):
3131
self.storage_slots_count = storage_slot_count
3232

3333

34-
@pytest.mark.skip("TEMPORAL")
3534
@pytest.mark.valid_from("EIP6800Transition")
3635
@pytest.mark.parametrize(
3736
"account_configs",
@@ -146,6 +145,38 @@ def test_partial(
146145
_generic_conversion(blockchain_test, account_configs, fill_first_block, fill_last_block)
147146

148147

148+
@pytest.mark.valid_from("EIP6800Transition")
149+
@pytest.mark.parametrize(
150+
"account_configs",
151+
[
152+
[AccountConfig(31 * (stride + 10) + 1, 4)],
153+
[AccountConfig(31 * (stride + 3), 1), AccountConfig(0, 0)],
154+
],
155+
ids=[
156+
"Stride overflow",
157+
"Stride overflow followed by EOA",
158+
],
159+
)
160+
@pytest.mark.parametrize(
161+
"fill_first_block",
162+
[False, True],
163+
)
164+
@pytest.mark.parametrize(
165+
"fill_last_block",
166+
[False, True],
167+
)
168+
def test_codechunks_stride_overflow(
169+
blockchain_test: BlockchainTestFiller,
170+
account_configs: list[AccountConfig],
171+
fill_first_block: bool,
172+
fill_last_block: bool,
173+
):
174+
"""
175+
Test code-chunks stride overflow.
176+
"""
177+
_generic_conversion(blockchain_test, account_configs, fill_first_block, fill_last_block)
178+
179+
149180
def _generic_conversion(
150181
blockchain_test: BlockchainTestFiller,
151182
account_configs: list[AccountConfig],

0 commit comments

Comments
 (0)