Skip to content

Commit

Permalink
fix(tests): EIP-7692: skip another test, add function signature for n…
Browse files Browse the repository at this point in the history
…ew test
  • Loading branch information
marioevz committed Jun 6, 2024
1 parent 81682ea commit 3f85704
Showing 1 changed file with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ def test_initcode_aborts(
pytest.param(MAX_BYTECODE_SIZE, id="max"),
pytest.param(MAX_BYTECODE_SIZE + 1, id="overmax"),
pytest.param(MAX_INITCODE_SIZE - factory_size, id="initcodemax"),
pytest.param(MAX_INITCODE_SIZE - factory_size + 1, id="initcodeovermax"),
pytest.param(
MAX_INITCODE_SIZE - factory_size + 1,
id="initcodeovermax",
marks=pytest.mark.skip("Oversized container in pre-alloc"),
),
pytest.param(
0xFFFF - factory_size,
id="64k-1",
Expand Down Expand Up @@ -253,6 +257,29 @@ def test_eofcreate_deploy_sizes(
state_test(env=env, pre=pre, post=post, tx=simple_transaction())


@pytest.mark.parametrize(
"target_deploy_size",
[
pytest.param(0x4000, id="large"),
pytest.param(MAX_BYTECODE_SIZE, id="max"),
pytest.param(MAX_BYTECODE_SIZE + 1, id="overmax"),
pytest.param(MAX_INITCODE_SIZE - factory_size, id="initcodemax"),
pytest.param(MAX_INITCODE_SIZE - factory_size + 1, id="initcodeovermax"),
pytest.param(0xFFFF - factory_size, id="64k-1"),
],
)
@pytest.mark.skip("Not implemented")
def test_eofcreate_deploy_sizes_tx(
state_test: StateTestFiller,
target_deploy_size: int,
):
"""
Verifies a mix of runtime contract sizes mixing success and multiple size failure modes
where the initcontainer is included in a transaction
"""
raise NotImplementedError("Not implemented")


@pytest.mark.parametrize(
"auxdata_size",
[
Expand Down

0 comments on commit 3f85704

Please sign in to comment.