mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
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:
parent
694325a6b3
commit
fcc31a562c
1 changed files with 5 additions and 14 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue