Skip to content

test_eofcreate_deploy_sizes_tx()

Documentation for tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_eofcreate_failures.py::test_eofcreate_deploy_sizes_tx@bc691d13.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_eofcreate_failures.py::test_eofcreate_deploy_sizes_tx --fork Osaka

Verifies a mix of runtime contract sizes mixing success and multiple size failure modes where the initcontainer is included in a transaction.

Source code in tests/osaka/eip7692_eof_v1/eip7620_eof_create/test_eofcreate_failures.py
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
@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")

Parametrized Test Cases

The interactive table below is also available as a standalone page.

Test ID (Abbreviated) target_deploy_size
...fork_Osaka-state_test-large 16384
...fork_Osaka-state_test-max 24576
...fork_Osaka-state_test-overmax 24577
...fork_Osaka-state_test-initcodemax 49074
...fork_Osaka-state_test-initcodeovermax 49075
...fork_Osaka-state_test-64k-1 65457
...fork_Osaka-blockchain_test_from_state_test-large 16384
...fork_Osaka-blockchain_test_from_state_test-max 24576
...fork_Osaka-blockchain_test_from_state_test-overmax 24577
...fork_Osaka-blockchain_test_from_state_test-initcodemax 49074
...fork_Osaka-blockchain_test_from_state_test-initcodeovermax 49075
...fork_Osaka-blockchain_test_from_state_test-64k-1 65457