test_factory_receives_balance_via_selfdestruct()¶
Documentation for tests/amsterdam/eip7997_deterministic_factory_predeploy/test_factory.py::test_factory_receives_balance_via_selfdestruct@c74f1a67.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip7997_deterministic_factory_predeploy/test_factory.py::test_factory_receives_balance_via_selfdestruct --fork Amsterdam
SELFDESTRUCT to the factory transfers the originator's balance to
the factory address. The factory's other state is untouched: same
nonce, same code. Calling the factory after the transfer still works.
Tests that the factory address has no special handling under
SELFDESTRUCT — it behaves like any other contract beneficiary.
Source code in tests/amsterdam/eip7997_deterministic_factory_predeploy/test_factory.py
469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.