From fcc31a562ccc96cd61b295d911076cb572d10c0a Mon Sep 17 00:00:00 2001 From: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Date: Sat, 10 Aug 2024 09:16:57 +0800 Subject: [PATCH] fix: enable correct string encoding of new opcodes (#975) fix: enable correct string encoding of new opcodes (#815) Co-authored-by: Zhang Zhuo --- core/vm/opcodes.go | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/core/vm/opcodes.go b/core/vm/opcodes.go index 0a3cdd62eb..63374c415f 100644 --- a/core/vm/opcodes.go +++ b/core/vm/opcodes.go @@ -287,11 +287,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", BLOBHASH: "BLOBHASH", BLOBBASEFEE: "BLOBBASEFEE", @@ -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 - pushes. PUSH1: "PUSH1",