test_call_to_double_delegated_target_single_hop()¶
Documentation for tests/amsterdam/eip8038_state_access_gas_cost_increase/test_call_gas.py::test_call_to_double_delegated_target_single_hop@2867859a.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8038_state_access_gas_cost_increase/test_call_gas.py::test_call_to_double_delegated_target_single_hop --fork Amsterdam
Verify delegation resolution is single-hop: A -> B -> C charges two.
target (A) is an EOA delegated to mid (B), which is itself
an EOA delegated to final (C), a code-bearing account. A cold
CALL to target reads exactly two account leaves -- the
target's and its delegation's -- and is charged
2 * COLD_ACCOUNT_ACCESS. The chain is not followed a
second hop, so final's leaf is not charged. Both the framework
opcode model and a runtime CodeGasMeasure confirm the value.
Source code in tests/amsterdam/eip8038_state_access_gas_cost_increase/test_call_gas.py
590 591 592 593 594 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 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.