test_top_frame_execution_charge()¶
Documentation for tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_top_frame_charges.py::test_top_frame_execution_charge@26332146.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_top_frame_charges.py::test_top_frame_execution_charge --fork Amsterdam
Recipient is an existing EIP-7702 delegation, so the top-frame
fires the COLD_ACCOUNT_ACCESS execution-gas charge regardless of
whether the transaction transfers value.
oog: gas limit is one short of covering the execution charge (plus the value-transfer charge whenvalue > 0). The transaction OOGs atcharge_gas(COLD_ACCOUNT_ACCESS)before the delegated code runs. The sender pays the fullgas_limitand the recipient keeps its pre-tx state.success: gas limit covers the execution charge; the delegated code is aSTOPand the transaction lands the value transfer.evm_reverts: the delegated code reverts immediately. The top-frame charge is consumed before dispatch and the twoPUSHopcodes that feed theREVERTare paid before the revert; the value transfer is rolled back, the unused EVM budget is returned, and the intrinsic and top-frame gas remain paid.
Source code in tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_top_frame_charges.py
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 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 | |
Parametrized Test Cases¶
This test generates 6 parametrized test cases across 1 fork.