test_nested_create_code_deposit_cannot_borrow_parent_gas()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py::test_nested_create_code_deposit_cannot_borrow_parent_gas@87aba1a3.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py::test_nested_create_code_deposit_cannot_borrow_parent_gas --fork Amsterdam
Test nested CREATE code deposit does not borrow parent gas.
Provide just enough gas for CREATE to start (new account state gas + regular gas) but not enough for the child frame to cover code deposit after init code runs. The CREATE increments the factory nonce but code deposit fails, so no contract is deployed.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_create.py
911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.