test_contract_creation()
Test transient storage in contract creation contexts.
Test ID | constructor_code | deploy_code | expected_storage | opcode |
---|---|---|---|---|
only_constructor_code-create | {0: 0, 1: 1} | CREATE | ||
only_constructor_code-create2 | {0: 0, 1: 1} | CREATE2 | ||
in_constructor_and_deployed_code-create | {0: 0, 1: 0, 2: 1} | CREATE | ||
in_constructor_and_deployed_code-create2 | {0: 0, 1: 0, 2: 1} | CREATE2 | ||
across_constructor_and_deployed_code_v0-create | {0: 0, 1: 1, 2: 1} | CREATE | ||
across_constructor_and_deployed_code_v0-create2 | {0: 0, 1: 1, 2: 1} | CREATE2 | ||
across_constructor_and_deployed_code_v1-create | {0: 0, 1: 1, 2: 0, 3: 1, 4: 1} | CREATE | ||
across_constructor_and_deployed_code_v1-create2 | {0: 0, 1: 1, 2: 0, 3: 1, 4: 1} | CREATE2 | ||
no_constructor_code-create | {0: 0, 1: 1} | CREATE | ||
no_constructor_code-create2 | {0: 0, 1: 1} | CREATE2 | ||
only_constructor_code-create | {0: 0, 1: 1} | CREATE | ||
only_constructor_code-create2 | {0: 0, 1: 1} | CREATE2 | ||
in_constructor_and_deployed_code-create | {0: 0, 1: 0, 2: 1} | CREATE | ||
in_constructor_and_deployed_code-create2 | {0: 0, 1: 0, 2: 1} | CREATE2 | ||
across_constructor_and_deployed_code_v0-create | {0: 0, 1: 1, 2: 1} | CREATE | ||
across_constructor_and_deployed_code_v0-create2 | {0: 0, 1: 1, 2: 1} | CREATE2 | ||
across_constructor_and_deployed_code_v1-create | {0: 0, 1: 1, 2: 0, 3: 1, 4: 1} | CREATE | ||
across_constructor_and_deployed_code_v1-create2 | {0: 0, 1: 1, 2: 0, 3: 1, 4: 1} | CREATE2 | ||
no_constructor_code-create | {0: 0, 1: 1} | CREATE | ||
no_constructor_code-create2 | {0: 0, 1: 1} | CREATE2 |