test_intrinsic_regular_gas_exceeds_cap_with_floor_below_cap()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_pricing.py::test_intrinsic_regular_gas_exceeds_cap_with_floor_below_cap@87aba1a3.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_pricing.py::test_intrinsic_regular_gas_exceeds_cap_with_floor_below_cap --fork Amsterdam
Reject when intrinsic regular gas exceeds the cap while the calldata
floor stays below it, isolating the regular operand of
max(intrinsic_regular, calldata_floor).
A large access list with no calldata pushes the regular intrinsic over
the cap while the floor stays well below it, and gas_limit covers
the total intrinsic so the sufficiency check passes. The explicit
floor < cap assertion guarantees the rejection comes from the
regular operand, so a client that compares only the calldata floor
against the cap would wrongly accept the transaction.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_pricing.py
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 394 395 396 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.