test_multi_tx_block_auth_refund_and_sstore()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_set_code.py::test_multi_tx_block_auth_refund_and_sstore@a9abd46e.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_set_code.py::test_multi_tx_block_auth_refund_and_sstore --fork Amsterdam
Test multi-transaction block with auth refund and SSTORE state gas.
Two transactions in one block: 1. A SetCode tx authorizing an existing account (gets new-account state gas refund to reservoir). The refund reduces intrinsic_state_gas. 2. A regular tx performing an SSTORE (charges STATE_BYTES_PER_STORAGE_SET * cpsb state gas).
Verifies block-level state gas accounting correctly handles both the auth refund from tx1 and the SSTORE charge from tx2.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_set_code.py
974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.