test_call_to_delegated_target_double_access()¶
Documentation for tests/amsterdam/eip8038_state_access_gas_cost_increase/test_call_gas.py::test_call_to_delegated_target_double_access@343274cc.
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_delegated_target_double_access --fork Amsterdam
Measure a call to a 7702-delegated target: 2x2 double access.
The spec applies the delegation surcharge to every call opcode
(CALL/CALLCODE/DELEGATECALL/STATICCALL), so each
reads two account leaves: the target's leaf and the delegation's
leaf. Each is charged independently as WARM_ACCESS or
COLD_ACCOUNT_ACCESS by warmth. DELEGATECALL and
STATICCALL carry no value but still pay the delegation
surcharge.
Source code in tests/amsterdam/eip8038_state_access_gas_cost_increase/test_call_gas.py
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 | |
Parametrized Test Cases¶
This test generates 16 parametrized test cases across 1 fork.