test_create2_collision_storage()¶
Documentation for tests/paris/eip7610_create_collision/test_revert_in_create.py::test_create2_collision_storage@9c2813ee.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/paris/eip7610_create_collision/test_revert_in_create.py::test_create2_collision_storage --fork Amsterdam
Test that CREATE2 fails when targeting an address with pre-existing storage.
A CREATE transaction deploys a contract that executes CREATE2. The CREATE2 target address has pre-existing storage, which should cause the CREATE2 to fail per EIP-7610. The deployer stores the CREATE2 result to slot 0 (0 on failure).
Source code in tests/paris/eip7610_create_collision/test_revert_in_create.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 6 forks.