Skip to content

Add support for block.slotnum #5259

Description

@pcaversaccio

The next EVM version amsterdam will ship the new opcode SLOTNUM (0x4b) (see EIP-7843), which returns the beacon chain slot number of the current block. While technically uint64 is enough as return type (SLOTNUM is returned as a uint64 in big endian encoding), maybe it's better sticking to uint256 to be consistent with the other block properties. But this is up for discussion.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions