Skip to content

Commit

Permalink
fix: temporarily disable string encoding for new opcodes (#737)
Browse files Browse the repository at this point in the history
feat: temporarily disable string encoding for new opcodes
  • Loading branch information
Thegaram committed May 2, 2024
1 parent 733dd01 commit c3b7678
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
19 changes: 14 additions & 5 deletions core/vm/opcodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ var opCodeToString = map[OpCode]string{
GASLIMIT: "GASLIMIT",
CHAINID: "CHAINID",
SELFBALANCE: "SELFBALANCE",
BASEFEE: "BASEFEE",

// we temporarily comment this out, since ccc expects
// the "opcode 0x%x not defined" string in the traces,
// should uncomment once ccc supports the string version.
// BASEFEE: "BASEFEE",

// 0x50 range - 'storage' and execution.
POP: "POP",
Expand All @@ -305,10 +309,15 @@ var opCodeToString = map[OpCode]string{
MSIZE: "MSIZE",
GAS: "GAS",
JUMPDEST: "JUMPDEST",
TLOAD: "TLOAD",
TSTORE: "TSTORE",
MCOPY: "MCOPY",
PUSH0: "PUSH0",

// we temporarily comment these out, since ccc expects
// the "opcode 0x%x not defined" string in the traces,
// should uncomment once ccc supports the string version.
// TLOAD: "TLOAD",
// TSTORE: "TSTORE",
// MCOPY: "MCOPY",

PUSH0: "PUSH0",

// 0x60 range - push.
PUSH1: "PUSH1",
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 = 5 // Major version component of the current release
VersionMinor = 3 // Minor version component of the current release
VersionPatch = 9 // Patch version component of the current release
VersionPatch = 10 // Patch version component of the current release
VersionMeta = "mainnet" // Version metadata to append to the version string
)

Expand Down

0 comments on commit c3b7678

Please sign in to comment.