fix: enable correct string encoding of new opcodes (#975)

fix: enable correct string encoding of new opcodes (#815)

Co-authored-by: Zhang Zhuo <mycinbrin@gmail.com>
This commit is contained in:
HAOYUatHZ 2024-08-10 09:16:57 +08:00 committed by GitHub
parent 694325a6b3
commit fcc31a562c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -287,11 +287,7 @@ var opCodeToString = map[OpCode]string{
GASLIMIT: "GASLIMIT", GASLIMIT: "GASLIMIT",
CHAINID: "CHAINID", CHAINID: "CHAINID",
SELFBALANCE: "SELFBALANCE", 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",
BLOBHASH: "BLOBHASH", BLOBHASH: "BLOBHASH",
BLOBBASEFEE: "BLOBBASEFEE", BLOBBASEFEE: "BLOBBASEFEE",
@ -309,15 +305,10 @@ var opCodeToString = map[OpCode]string{
MSIZE: "MSIZE", MSIZE: "MSIZE",
GAS: "GAS", GAS: "GAS",
JUMPDEST: "JUMPDEST", JUMPDEST: "JUMPDEST",
TLOAD: "TLOAD",
// we temporarily comment these out, since ccc expects TSTORE: "TSTORE",
// the "opcode 0x%x not defined" string in the traces, MCOPY: "MCOPY",
// should uncomment once ccc supports the string version. PUSH0: "PUSH0",
// TLOAD: "TLOAD",
// TSTORE: "TSTORE",
// MCOPY: "MCOPY",
PUSH0: "PUSH0",
// 0x60 range - pushes. // 0x60 range - pushes.
PUSH1: "PUSH1", PUSH1: "PUSH1",