Skip to content

Conversation

@Forostovec
Copy link
Contributor

This commit removes ambiguity in EIP-7793 around the TXINDEX opcode result and the sentinel value used by uint64 fields:

  • Define that TXINDEX pushes a 256-bit stack word with a 64-bit big-endian value zero-extended to 256 bits (left-padded to 32 bytes).
  • Specify that the sentinel -1 for uint64 fields is the concrete value 0xffffffffffffffff (2^64 - 1), and when surfaced in EVM (e.g., via TXINDEX), it MUST be zero-extended to a 256-bit stack word.

Rationale:

  • EVM stack items are always 256-bit words. Stating "uint64 in big endian" without explicit zero-extension leaves room for divergent implementations.
  • Similar recent EIPs (e.g., SLOTNUM) use uint64, but explicit padding rules ensure consistent client behavior and avoid misinterpretation.

@Forostovec Forostovec requested a review from eth-bot as a code owner November 14, 2025 09:30
@github-actions github-actions bot added c-update Modifies an existing proposal s-draft This EIP is a Draft t-core labels Nov 14, 2025
@eth-bot
Copy link
Collaborator

eth-bot commented Nov 14, 2025

File EIPS/eip-7793.md

Requires 1 more reviewers from @Marchhill, @smartprogrammer93

@eth-bot eth-bot added the a-review Waiting on author to review label Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a-review Waiting on author to review c-update Modifies an existing proposal s-draft This EIP is a Draft t-core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants