Skip to content

EIP-7843: SLOTNUM opcode#2872

Open
anvacaru wants to merge 2 commits into
amsterdam-foundationfrom
eip-7843
Open

EIP-7843: SLOTNUM opcode#2872
anvacaru wants to merge 2 commits into
amsterdam-foundationfrom
eip-7843

Conversation

@anvacaru

Copy link
Copy Markdown
Contributor

Implements EIP-7843: SLOTNUM pushes the current beacon-chain slot number (from the Amsterdam header field).

Changes:

  • evm.md: SLOTNUM opcode; schedule.md: Ghasslotnum + gas cost.

anvacaru and others added 2 commits July 24, 2026 20:35
Add the SLOTNUM opcode (0x4b, EIP-7843): a NullStackOp pushing the block's
slot number (already parsed into <slotNumber>) at a fixed Gbase (2) cost,
disassembled from byte 75 and gated on the new Ghasslotnum schedule flag
(true at AMSTERDAM). Unmask the four for_amsterdam SLOTNUM conformance
fixtures; two sub-cases (value/slot_zero, gas_cost/out_of_gas) remain masked
pending the separate Amsterdam Csstore cold-no-op repricing (EIP-8037/8038).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant