You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: EIP-7843 — SLOTNUM opcode (Amsterdam)
Adds SLOTNUM (0x4B): pushes the beacon chain slot number from the block
environment. Gas: G_BASE (2). Adds slot_number field to BlockEnv and
BlockEnvBuilder (defaults to 0).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(eip-7843): make slot_number optional everywhere per review feedback
- `BlockEnv.slot_number`: `u64` → `?u64`; default is `null` (absent on
pre-Amsterdam / non-beacon chains)
- `BlockEnvBuilder`: add `setSlotNumber(?u64)`; propagate `slot_number`
through all existing setter methods (previously silently dropped)
- `Host.slotNumber()`: returns `?u64`
- `opSlotnum`: halt with `invalid_opcode` when slot number is absent
- `spec_test/runner.zig`: initialize `slot_number` to `null`
Addresses review comment from @garyschulte on PR #10.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments