Skip to content

Commit 0956416

Browse files
authored
internal/evm: add SLOTNUM (0x4b) opcode to Amsterdam (#29)
1 parent 006c3b0 commit 0956416

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

internal/evm/forkdefs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ var forkReg = map[string]*InstructionSetDef{
261261
opm["DUPN"],
262262
opm["SWAPN"],
263263
opm["EXCHANGE"],
264+
opm["SLOTNUM"],
264265
},
265266
},
266267

internal/evm/ops.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ var oplist = []*Op{
103103
{Name: "BASEFEE", Code: 0x48, out: stack{"basefee"}},
104104
{Name: "BLOBHASH", Code: 0x49, in: stack{"index"}, out: stack{"blobhash"}},
105105
{Name: "BLOBBASEFEE", Code: 0x4a, out: stack{"blobbasefee"}},
106+
{Name: "SLOTNUM", Code: 0x4b, out: stack{"slotnum"}},
106107
{Name: "POP", Code: 0x50, in: stack{"x"}},
107108
{Name: "MLOAD", Code: 0x51, in: stack{"offset"}, out: stack{"word"}},
108109
{Name: "MSTORE", Code: 0x52, in: stack{"memOffset", "x"}},

0 commit comments

Comments
 (0)