Skip to content

Commit

Permalink
core/vm: make all opcodes proper type (#30925)
Browse files Browse the repository at this point in the history
Noticed this omission while doing some work on goevmlab. We don't
properly type some of the opcodes, but apparently implicit casting works
in all the internal usecases.
  • Loading branch information
holiman authored Dec 17, 2024
1 parent feaf1c9 commit 5b9a3ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/vm/opcodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const (

// 0x80 range - dups.
const (
DUP1 = 0x80 + iota
DUP1 OpCode = 0x80 + iota
DUP2
DUP3
DUP4
Expand All @@ -184,7 +184,7 @@ const (

// 0x90 range - swaps.
const (
SWAP1 = 0x90 + iota
SWAP1 OpCode = 0x90 + iota
SWAP2
SWAP3
SWAP4
Expand Down

0 comments on commit 5b9a3ea

Please sign in to comment.