From 8e452d413b6f09fe37ce29b0efc8463536d5858e Mon Sep 17 00:00:00 2001 From: Zhang Zhuo Date: Sun, 27 Aug 2023 09:00:26 +0800 Subject: [PATCH] fix: more consistent invalid opcode trace --- core/vm/opcodes.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/vm/opcodes.go b/core/vm/opcodes.go index cf9a26231b03..d61508cf9d47 100644 --- a/core/vm/opcodes.go +++ b/core/vm/opcodes.go @@ -208,13 +208,6 @@ const ( LOG4 ) -// unofficial opcodes used for parsing. -const ( - PUSH OpCode = 0xb0 + iota - DUP - SWAP -) - // 0xf0 range - closures. const ( CREATE OpCode = 0xf0 @@ -395,10 +388,6 @@ var opCodeToString = map[OpCode]string{ REVERT: "REVERT", INVALID: "INVALID", SELFDESTRUCT: "SELFDESTRUCT", - - PUSH: "PUSH", - DUP: "DUP", - SWAP: "SWAP", } func (op OpCode) String() string {