Skip to content

Commit 3f5fb27

Browse files
authored
fix: enable correct string encoding of new opcodes (#815)
1 parent dfd4039 commit 3f5fb27

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

core/vm/opcodes.go

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,7 @@ var opCodeToString = map[OpCode]string{
288288
GASLIMIT: "GASLIMIT",
289289
CHAINID: "CHAINID",
290290
SELFBALANCE: "SELFBALANCE",
291-
292-
// we temporarily comment this out, since ccc expects
293-
// the "opcode 0x%x not defined" string in the traces,
294-
// should uncomment once ccc supports the string version.
295-
// BASEFEE: "BASEFEE",
291+
BASEFEE: "BASEFEE",
296292

297293
// 0x50 range - 'storage' and execution.
298294
POP: "POP",
@@ -309,15 +305,10 @@ var opCodeToString = map[OpCode]string{
309305
MSIZE: "MSIZE",
310306
GAS: "GAS",
311307
JUMPDEST: "JUMPDEST",
312-
313-
// we temporarily comment these out, since ccc expects
314-
// the "opcode 0x%x not defined" string in the traces,
315-
// should uncomment once ccc supports the string version.
316-
// TLOAD: "TLOAD",
317-
// TSTORE: "TSTORE",
318-
// MCOPY: "MCOPY",
319-
320-
PUSH0: "PUSH0",
308+
TLOAD: "TLOAD",
309+
TSTORE: "TSTORE",
310+
MCOPY: "MCOPY",
311+
PUSH0: "PUSH0",
321312

322313
// 0x60 range - push.
323314
PUSH1: "PUSH1",

0 commit comments

Comments
 (0)