Skip to content

Commit

Permalink
Merge pull request #2233 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
make all opcodes proper type
  • Loading branch information
ucwong authored Dec 25, 2024
2 parents c0a08f0 + 023e203 commit cf576f3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions core/vm/opcodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ const (
PUSH30
PUSH31
PUSH32
DUP1
)

// 0x80 range - dups.
const (
DUP1 OpCode = 0x80 + iota
DUP2
DUP3
DUP4
Expand All @@ -170,7 +174,11 @@ const (
DUP14
DUP15
DUP16
SWAP1
)

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

0 comments on commit cf576f3

Please sign in to comment.