Skip to content

Commit

Permalink
fix: enable correct string encoding of new opcodes (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
lispc authored Aug 8, 2024
1 parent dfd4039 commit 3f5fb27
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions core/vm/opcodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,7 @@ var opCodeToString = map[OpCode]string{
GASLIMIT: "GASLIMIT",
CHAINID: "CHAINID",
SELFBALANCE: "SELFBALANCE",

// 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",
BASEFEE: "BASEFEE",

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

// 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",
TLOAD: "TLOAD",
TSTORE: "TSTORE",
MCOPY: "MCOPY",
PUSH0: "PUSH0",

// 0x60 range - push.
PUSH1: "PUSH1",
Expand Down

0 comments on commit 3f5fb27

Please # to comment.