Skip to content

Commit f211341

Browse files
committed
Add gas tests
1 parent bc3dc5f commit f211341

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

docs/checklist_templates/eip_testing_checklist_template.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,11 @@ The EIP removes one or more precompiles from the existing list of precompiles.
403403

404404
### Test Vectors
405405

406-
**TBD**
406+
- [ ] Gas Usage: Measure and store the gas usage during the operations affected by the gas cost changes and verify the updated behavior.
407+
- [ ] Out-of-gas: Verify the operations affected by the gas cost changes can run out-of-gas with the updated limits.
408+
- [ ] Fork transition: Verify gas costs are:
409+
- [ ] Unaffected before the fork activation block.
410+
- [ ] Updated on and after fork activation block.
407411

408412
### Framework Changes
409413

@@ -416,11 +420,26 @@ The EIP removes one or more precompiles from the existing list of precompiles.
416420

417421
### Test Vectors
418422

419-
**TBD**
423+
- [ ] Refund calculation: Verify that the refund does not exceed `gas_used // MAX_REFUND_QUOTIENT` (`MAX_REFUND_QUOTIENT==5` in [EIP-3529](https://eips.ethereum.org/EIPS/eip-3529)) in the following scenarios:
424+
- [ ] `refund == gas_used // MAX_REFUND_QUOTIENT + 1`
425+
- [ ] `refund == gas_used // MAX_REFUND_QUOTIENT`
426+
- [ ] `refund == gas_used // MAX_REFUND_QUOTIENT - 1`
427+
- [ ] Exceptional Abort:
428+
- [ ] If the operation causing the refund can be reverted, verify the refund is not applied if the following cases:
429+
- [ ] `REVERT`
430+
- [ ] Out-of-gas
431+
- [ ] Invalid opcode
432+
- [ ] `REVERT` of an upper call frame
433+
- [ ] If the operation causing the refund cannot be reverted (e.g. in the case of a transaction-scoped operation such as authorization refunds in EIP-7702), verify the refund is still applied even in the following cases:
434+
- [ ] `REVERT` at the top call frame
435+
- [ ] Out-of-gas at the top call frame
436+
- [ ] Invalid opcode at the top call frame
437+
- [ ] Cross-Functional Test: Verify the following tests are updated to support the new type of refunds:
438+
- [ ] `tests/prague/eip7623_increase_calldata_cost/test_refunds.py`
420439

421440
### Framework Changes
422441

423-
**TBD**
442+
N/A
424443

425444
## <!-- id:blob_count_changes --> Blob Count Changes
426445

0 commit comments

Comments
 (0)