Test SLOTNUM¶
Documentation for tests/amsterdam/eip7843_slotnum/test_slotnum.py@b314d18e.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip7843_slotnum/test_slotnum.py --fork Amsterdam
Test Functions Overview¶
| Name | Type | Cases (Amsterdam) | Description |
|---|---|---|---|
test_slotnum_distinct_per_block |
blockchain_test | 1 | Test that SLOTNUM returns each block's own slot number. |
test_slotnum_gas_cost |
state_test | 2 | Test that SLOTNUM opcode costs exactly 2 gas (G_BASE). |
test_slotnum_value |
state_test | 5 | Test that SLOTNUM opcode returns the correct slot number. |