test_account_warmth_reverts_on_subcall_revert()¶
Documentation for tests/amsterdam/eip8038_state_access_gas_cost_increase/test_call_gas.py::test_account_warmth_reverts_on_subcall_revert@c74f1a67.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8038_state_access_gas_cost_increase/test_call_gas.py::test_account_warmth_reverts_on_subcall_revert --fork Amsterdam
Account warmth acquired inside a reverted sub-call does not persist.
An inner contract reads an address's BALANCE via
DELEGATECALL (so the warmed address belongs to the shared
accessed-addresses set) then REVERTs. Back in the outer frame,
that same address's first BALANCE is cold again and is charged
COLD_ACCOUNT_ACCESS (3,000), proving the warm-address set is
rolled back on revert (mirrors the SLOAD warmth-revert case for
the account dimension).
Source code in tests/amsterdam/eip8038_state_access_gas_cost_increase/test_call_gas.py
595 596 597 598 599 600 601 602 603 604 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 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.