test_top_frame_regular_charge()¶
Documentation for tests/amsterdam/eip2780_reduce_intrinsic_tx_gas/test_top_frame_charges.py::test_top_frame_regular_charge@c74f1a67.
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_regular_charge --fork Amsterdam
Recipient is an existing EIP-7702 delegation, so the top-frame
fires the COLD_ACCOUNT_ACCESS regular-gas charge regardless of
whether the transaction transfers value.
oog: gas limit is one short of covering the regular 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 regular 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
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 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 386 387 388 389 390 391 392 393 | |
Parametrized Test Cases¶
This test generates 6 parametrized test cases across 1 fork.