Skip to content

Test Warm Status REVERT

Documentation for tests/berlin/eip2929_gas_cost_increases/test_warm_status_revert.py@c17999c0.

Generate fixtures for these test cases for Amsterdam with:

fill -v tests/berlin/eip2929_gas_cost_increases/test_warm_status_revert.py --fork Amsterdam

Tests for warm/cold access status across reverting sub-frames.

A reverting sub-call rolls back the warm status it introduced; warm status from an outer frame, such as the transaction access list, survives a failed child, including a reverted CREATE.

Test Functions Overview

Name Type Cases (Amsterdam) Description
test_access_list_slot_warmth_survives_failed_create2 state_test 1 An access-list-warmed slot stays warm after a CREATE2 that reverts.
test_account_warm_status_reverted_by_subcall state_test 1 Test that account warm status is reverted when a sub-call reverts.
test_storage_warm_status_reverted_by_subcall state_test 1 Test that storage slot warm status is reverted when a sub-call reverts.