fix: temporarily disable string encoding for new opcodes (#737)

feat: temporarily disable string encoding for new opcodes
This commit is contained in:
Péter Garamvölgyi 2024-05-02 17:46:11 +08:00 committed by GitHub
parent 733dd01a9a
commit c3b7678ccc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 6 deletions

View file

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

View file

@ -24,7 +24,7 @@ import (
const ( const (
VersionMajor = 5 // Major version component of the current release VersionMajor = 5 // Major version component of the current release
VersionMinor = 3 // Minor version component of the current release VersionMinor = 3 // Minor version component of the current release
VersionPatch = 9 // Patch version component of the current release VersionPatch = 10 // Patch version component of the current release
VersionMeta = "mainnet" // Version metadata to append to the version string VersionMeta = "mainnet" // Version metadata to append to the version string
) )