Skip to content

Commit

Permalink
fix(trace): more consistent invalid opcode trace (#487)
Browse files Browse the repository at this point in the history
* fix: more consistent invalid opcode trace

* Update version.go

---------

Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
  • Loading branch information
3 people authored Aug 31, 2023
1 parent 24d8567 commit d45613f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
11 changes: 0 additions & 11 deletions core/vm/opcodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,6 @@ const (
LOG4
)

// unofficial opcodes used for parsing.
const (
PUSH OpCode = 0xb0 + iota
DUP
SWAP
)

// 0xf0 range - closures.
const (
CREATE OpCode = 0xf0
Expand Down Expand Up @@ -395,10 +388,6 @@ var opCodeToString = map[OpCode]string{
REVERT: "REVERT",
INVALID: "INVALID",
SELFDESTRUCT: "SELFDESTRUCT",

PUSH: "PUSH",
DUP: "DUP",
SWAP: "SWAP",
}

func (op OpCode) String() string {
Expand Down
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
const (
VersionMajor = 4 // Major version component of the current release
VersionMinor = 3 // Minor version component of the current release
VersionPatch = 59 // Patch version component of the current release
VersionPatch = 60 // Patch version component of the current release
VersionMeta = "sepolia" // Version metadata to append to the version string
)

Expand Down

0 comments on commit d45613f

Please sign in to comment.