aboutsummaryrefslogtreecommitdiff
path: root/core/vm/jump_table.go
diff options
context:
space:
mode:
authorAaron Buchwald <[email protected]>2020-12-15 17:05:51 -0500
committerAaron Buchwald <[email protected]>2020-12-15 17:05:51 -0500
commit34da2a9bbc1cad12e5d1ab14799290e4b4987f99 (patch)
tree40caaa95a069998b98322123a077fe32e394ce72 /core/vm/jump_table.go
parent3bf6e094864fde72484b824749019c64411239c3 (diff)
Fix apricot instruction set
Diffstat (limited to 'core/vm/jump_table.go')
-rw-r--r--core/vm/jump_table.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/core/vm/jump_table.go b/core/vm/jump_table.go
index fc12f93..44e2ebc 100644
--- a/core/vm/jump_table.go
+++ b/core/vm/jump_table.go
@@ -63,6 +63,16 @@ var (
// JumpTable contains the EVM opcodes supported at a given fork.
type JumpTable [256]*operation
+// newApricotInstructionSet returns a new instruction set
+// compatible with the Apricot release, which deprecates
+// added instructions: CALLEX and BALANCEMC
+func newApricotInstructionSet() JumpTable {
+ instructionSet := newIstanbulInstructionSet()
+ instructionSet[CALLEX] = nil
+ instructionSet[BALANCEMC] = nil
+ return instructionSet
+}
+
func newYoloV1InstructionSet() JumpTable {
instructionSet := newIstanbulInstructionSet()
@@ -1044,13 +1054,3 @@ func newFrontierInstructionSet() JumpTable {
},
}
}
-
-// newApricotInstructionSet returns a new instruction set
-// compatible with the Apricot release, which deprecates
-// added instructions: CALLEX and BALANCEMC
-func newApricotInstructionSet() JumpTable {
- instructionSet := newFrontierInstructionSet()
- instructionSet[CALLEX] = nil
- instructionSet[BALANCEMC] = nil
- return instructionSet
-}