test_calldata_floor_survives_state_refund()¶
Documentation for tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_calldata_floor.py::test_calldata_floor_survives_state_refund@622620d8.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_calldata_floor.py::test_calldata_floor_survives_state_refund --fork Amsterdam
Verify a refund cannot push the sender's bill under the floor.
The transaction runs a 0 to x to 0 cycle, which both refunds its state charge and earns a write-cost refund, while carrying enough calldata for the floor to bind. The floor is applied after refunds, so the sender still pays it in full.
Source code in tests/amsterdam/eip8037_state_creation_gas_cost_increase/test_state_gas_calldata_floor.py
424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 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 | |
Parametrized Test Cases¶
This test generates 1 parametrized test case across 1 fork.