@@ -68,12 +68,11 @@ func enable1884(jt *JumpTable) {
68
68
jt [EXTCODEHASH ].constantGas = params .ExtcodeHashGasEIP1884
69
69
70
70
// New opcode
71
- jt [SELFBALANCE ] = operation {
71
+ jt [SELFBALANCE ] = & operation {
72
72
execute : opSelfBalance ,
73
73
constantGas : GasFastStep ,
74
74
minStack : minStack (0 , 1 ),
75
75
maxStack : maxStack (0 , 1 ),
76
- valid : true ,
77
76
}
78
77
}
79
78
@@ -87,12 +86,11 @@ func opSelfBalance(pc *uint64, interpreter *EVMInterpreter, callContext *callCtx
87
86
// - Adds an opcode that returns the current chain’s EIP-155 unique identifier
88
87
func enable1344 (jt * JumpTable ) {
89
88
// New opcode
90
- jt [CHAINID ] = operation {
89
+ jt [CHAINID ] = & operation {
91
90
execute : opChainID ,
92
91
constantGas : GasQuickStep ,
93
92
minStack : minStack (0 , 1 ),
94
93
maxStack : maxStack (0 , 1 ),
95
- valid : true ,
96
94
}
97
95
}
98
96
@@ -113,29 +111,26 @@ func enable2200(jt *JumpTable) {
113
111
// - Adds opcodes that jump to and return from subroutines
114
112
func enable2315 (jt * JumpTable ) {
115
113
// New opcode
116
- jt [BEGINSUB ] = operation {
114
+ jt [BEGINSUB ] = & operation {
117
115
execute : opBeginSub ,
118
116
constantGas : GasQuickStep ,
119
117
minStack : minStack (0 , 0 ),
120
118
maxStack : maxStack (0 , 0 ),
121
- valid : true ,
122
119
}
123
120
// New opcode
124
- jt [JUMPSUB ] = operation {
121
+ jt [JUMPSUB ] = & operation {
125
122
execute : opJumpSub ,
126
123
constantGas : GasSlowStep ,
127
124
minStack : minStack (1 , 0 ),
128
125
maxStack : maxStack (1 , 0 ),
129
126
jumps : true ,
130
- valid : true ,
131
127
}
132
128
// New opcode
133
- jt [RETURNSUB ] = operation {
129
+ jt [RETURNSUB ] = & operation {
134
130
execute : opReturnSub ,
135
131
constantGas : GasFastStep ,
136
132
minStack : minStack (0 , 0 ),
137
133
maxStack : maxStack (0 , 0 ),
138
- valid : true ,
139
134
jumps : true ,
140
135
}
141
136
}
0 commit comments