test_call_insufficient_balance_returns_reservoir()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_call.py::test_call_insufficient_balance_returns_reservoir@c74f1a67.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_call.py::test_call_insufficient_balance_returns_reservoir --fork Amsterdam
Test CALL with insufficient balance returns the reservoir to parent.
A value-bearing CALL to an existing account fails the balance check before entering the child frame; gas_left and state_gas_left are returned to the parent, which can still use the reservoir for a later SSTORE. The new-account variant (where NEW_ACCOUNT is charged then refilled on the same failure) is pinned by test_call_insufficient_balance_refunds_new_account_state_gas.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_call.py
665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.