test_factory_in_caller_context()¶
Documentation for tests/amsterdam/eip7997_deterministic_factory_predeploy/test_factory.py::test_factory_in_caller_context@5c024cbb.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip7997_deterministic_factory_predeploy/test_factory.py::test_factory_in_caller_context --fork Amsterdam
Under DELEGATECALL or CALLCODE, the factory's bytecode runs in the
caller's context, so CREATE2's deployer is the caller — not the
factory. The contract is deployed at the address derived from the
caller, and the factory-derived address is empty.
Source code in tests/amsterdam/eip7997_deterministic_factory_predeploy/test_factory.py
357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.