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

This commit is contained in:
Zhang Zhuo 2024-08-08 18:11:26 +08:00 committed by GitHub
parent dfd4039be7
commit 3f5fb275ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -288,11 +288,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",
// 0x50 range - 'storage' and execution. // 0x50 range - 'storage' and execution.
POP: "POP", POP: "POP",
@ -309,14 +305,9 @@ 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.
// TLOAD: "TLOAD",
// TSTORE: "TSTORE",
// MCOPY: "MCOPY",
PUSH0: "PUSH0", PUSH0: "PUSH0",
// 0x60 range - push. // 0x60 range - push.