Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(trace): more consistent invalid opcode trace #487

Merged
merged 5 commits into from
Aug 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
Thegaram marked this conversation as resolved.
Show resolved Hide resolved
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
Loading