test_call_frame_credit_repays_spill_before_fixed_gas_probe()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_cross_frame_refund.py::test_call_frame_credit_repays_spill_before_fixed_gas_probe@622620d8.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_cross_frame_refund.py::test_call_frame_credit_repays_spill_before_fixed_gas_probe --fork Amsterdam
Test a plain CALL credit repays the spill before a fixed-gas probe.
The transaction starts with no reservoir. The spilling frame merges its claim into the parent. A sibling or grandchild clears the slot, and its credit repays that claim when it reaches the parent. The probe receives only its execution cost, so it cannot fund its state charge from the repaid gas. It fails with or without the clear.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_cross_frame_refund.py
605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 | |
Parametrized Test Cases¶
This test generates 4 parametrized test cases across 1 fork.