test_create_address_nonce_boundary()¶
Documentation for tests/frontier/create/test_create_preimage_layout.py::test_create_address_nonce_boundary@b314d18e.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/frontier/create/test_create_preimage_layout.py::test_create_address_nonce_boundary --fork Amsterdam
Verify CreatePreimageLayout at RLP encoding size boundaries.
Deploy a contract at an address whose first and last bytes are
zero, with a prestate nonce set to starting_nonce. Run
CREATE in a loop for a small number of iterations, verifying
each computed address matches the actual one.
Each boundary value is the last nonce before the RLP encoding grows by one byte.
Source code in tests/frontier/create/test_create_preimage_layout.py
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | |
Parametrized Test Cases¶
This test generates 9 parametrized test cases across 2 forks.