test_top_frame_charges_delegation_is_recipient()¶
Documentation for tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_warmth_invariants.py::test_top_frame_charges_delegation_is_recipient@5c024cbb.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_warmth_invariants.py::test_top_frame_charges_delegation_is_recipient --fork Amsterdam
Recipient holds a pre-existing EIP-7702 delegation pointing back
at itself. The delegation target is the recipient, which is warm,
so the top-frame charges WARM_ACCESS, and then the dispatched
EVM frame runs the recipient's code -- which is the delegation
prefix 0xef 01 00 <addr>. The leading 0xef decodes as the
INVALID opcode, consuming the remaining EVM budget. The
intrinsic and top-frame gas remain paid; the value transfer is
rolled back.
Source code in tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_warmth_invariants.py
440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.