test_recreate_in_later_block()¶
Documentation for tests/cancun/eip6780_selfdestruct/test_selfdestruct_finalization.py::test_recreate_in_later_block@49633827.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/cancun/eip6780_selfdestruct/test_selfdestruct_finalization.py::test_recreate_in_later_block --fork Amsterdam
A contract is created and self-destructs in one block, then the same factory creates it again at the same address in a later block. Before EIP-8246 the first account is gone by then, so the second creation starts from nothing; from EIP-8246 on it lands on the balance the first one left behind and adds to it.
Source code in tests/cancun/eip6780_selfdestruct/test_selfdestruct_finalization.py
549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 4 forks.