@@ -81,7 +81,7 @@ func enable1884(jt *JumpTable) {
81
81
jt [EXTCODEHASH ].constantGas = params .ExtcodeHashGasEIP1884
82
82
83
83
// New opcode
84
- jt [SELFBALANCE ] = & operation {
84
+ jt [SELFBALANCE ] = operation {
85
85
execute : opSelfBalance ,
86
86
constantGas : GasFastStep ,
87
87
}
@@ -96,7 +96,7 @@ func opSelfBalance(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext)
96
96
// - Adds an opcode that returns the current chain’s EIP-155 unique identifier
97
97
func enable1344 (jt * JumpTable ) {
98
98
// New opcode
99
- jt [CHAINID ] = & operation {
99
+ jt [CHAINID ] = operation {
100
100
execute : opChainID ,
101
101
constantGas : GasQuickStep ,
102
102
}
@@ -165,7 +165,7 @@ func enable3529(jt *JumpTable) {
165
165
// - Adds an opcode that returns the current block's base fee.
166
166
func enable3198 (jt * JumpTable ) {
167
167
// New opcode
168
- jt [BASEFEE ] = & operation {
168
+ jt [BASEFEE ] = operation {
169
169
execute : opBaseFee ,
170
170
constantGas : GasQuickStep ,
171
171
}
@@ -175,12 +175,12 @@ func enable3198(jt *JumpTable) {
175
175
// - Adds TLOAD that reads from transient storage
176
176
// - Adds TSTORE that writes to transient storage
177
177
func enable1153 (jt * JumpTable ) {
178
- jt [TLOAD ] = & operation {
178
+ jt [TLOAD ] = operation {
179
179
execute : opTload ,
180
180
constantGas : params .WarmStorageReadCostEIP2929 ,
181
181
}
182
182
183
- jt [TSTORE ] = & operation {
183
+ jt [TSTORE ] = operation {
184
184
execute : opTstore ,
185
185
constantGas : params .WarmStorageReadCostEIP2929 ,
186
186
}
@@ -222,7 +222,7 @@ func opBaseFee(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]
222
222
// enable3855 applies EIP-3855 (PUSH0 opcode)
223
223
func enable3855 (jt * JumpTable ) {
224
224
// New opcode
225
- jt [PUSH0 ] = & operation {
225
+ jt [PUSH0 ] = operation {
226
226
execute : opPush0 ,
227
227
constantGas : GasQuickStep ,
228
228
}
@@ -243,7 +243,7 @@ func enable3860(jt *JumpTable) {
243
243
// enable5656 enables EIP-5656 (MCOPY opcode)
244
244
// https://eips.ethereum.org/EIPS/eip-5656
245
245
func enable5656 (jt * JumpTable ) {
246
- jt [MCOPY ] = & operation {
246
+ jt [MCOPY ] = operation {
247
247
execute : opMcopy ,
248
248
constantGas : GasFastestStep ,
249
249
}
@@ -314,31 +314,31 @@ func opCLZ(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte
314
314
315
315
// enable4844 applies EIP-4844 (BLOBHASH opcode)
316
316
func enable4844 (jt * JumpTable ) {
317
- jt [BLOBHASH ] = & operation {
317
+ jt [BLOBHASH ] = operation {
318
318
execute : opBlobHash ,
319
319
constantGas : GasFastestStep ,
320
320
}
321
321
}
322
322
323
323
// enable7939 enables EIP-7939 (CLZ opcode)
324
324
func enable7939 (jt * JumpTable ) {
325
- jt [CLZ ] = & operation {
325
+ jt [CLZ ] = operation {
326
326
execute : opCLZ ,
327
327
constantGas : GasFastStep ,
328
328
}
329
329
}
330
330
331
331
// enable7516 applies EIP-7516 (BLOBBASEFEE opcode)
332
332
func enable7516 (jt * JumpTable ) {
333
- jt [BLOBBASEFEE ] = & operation {
333
+ jt [BLOBBASEFEE ] = operation {
334
334
execute : opBlobBaseFee ,
335
335
constantGas : GasQuickStep ,
336
336
}
337
337
}
338
338
339
339
// enable6780 applies EIP-6780 (deactivate SELFDESTRUCT)
340
340
func enable6780 (jt * JumpTable ) {
341
- jt [SELFDESTRUCT ] = & operation {
341
+ jt [SELFDESTRUCT ] = operation {
342
342
execute : opSelfdestructEIP6780 ,
343
343
constantGas : params .SelfdestructGasEIP150 ,
344
344
}
@@ -440,71 +440,71 @@ func makePushEIP4762(size uint64, pushByteSize int) executionFunc {
440
440
}
441
441
442
442
func enable4762 (jt * JumpTable ) {
443
- jt [SSTORE ] = & operation {
443
+ jt [SSTORE ] = operation {
444
444
execute : opSstoreEIP4762 ,
445
445
}
446
- jt [SLOAD ] = & operation {
446
+ jt [SLOAD ] = operation {
447
447
execute : opSLoadEIP4762 ,
448
448
}
449
449
450
- jt [BALANCE ] = & operation {
450
+ jt [BALANCE ] = operation {
451
451
execute : opBalanceEIP4762 ,
452
452
}
453
453
454
- jt [EXTCODESIZE ] = & operation {
454
+ jt [EXTCODESIZE ] = operation {
455
455
execute : opExtCodeSizeEIP4762 ,
456
456
}
457
457
458
- jt [EXTCODEHASH ] = & operation {
458
+ jt [EXTCODEHASH ] = operation {
459
459
execute : opExtCodeHashEIP4762 ,
460
460
}
461
461
462
- jt [EXTCODECOPY ] = & operation {
462
+ jt [EXTCODECOPY ] = operation {
463
463
execute : opExtCodeCopyEIP4762 ,
464
464
}
465
465
466
- jt [CODECOPY ] = & operation {
466
+ jt [CODECOPY ] = operation {
467
467
execute : opCodeCopyEIP4762 ,
468
468
constantGas : GasFastestStep ,
469
469
}
470
470
471
- jt [SELFDESTRUCT ] = & operation {
471
+ jt [SELFDESTRUCT ] = operation {
472
472
execute : opSelfdestructEIP4762 ,
473
473
constantGas : params .SelfdestructGasEIP150 ,
474
474
}
475
475
476
- jt [CREATE ] = & operation {
476
+ jt [CREATE ] = operation {
477
477
execute : opCreateEIP3860 ,
478
478
constantGas : params .CreateNGasEip4762 ,
479
479
}
480
480
481
- jt [CREATE2 ] = & operation {
481
+ jt [CREATE2 ] = operation {
482
482
execute : opCreate2EIP3860 ,
483
483
constantGas : params .CreateNGasEip4762 ,
484
484
}
485
485
486
- jt [CALL ] = & operation {
486
+ jt [CALL ] = operation {
487
487
execute : opCallEIP4762 ,
488
488
}
489
489
490
- jt [CALLCODE ] = & operation {
490
+ jt [CALLCODE ] = operation {
491
491
execute : opCallCodeEIP4762 ,
492
492
}
493
493
494
- jt [STATICCALL ] = & operation {
494
+ jt [STATICCALL ] = operation {
495
495
execute : opStaticCallEIP4762 ,
496
496
}
497
497
498
- jt [DELEGATECALL ] = & operation {
498
+ jt [DELEGATECALL ] = operation {
499
499
execute : opDelegateCallEIP4762 ,
500
500
}
501
501
502
- jt [PUSH1 ] = & operation {
502
+ jt [PUSH1 ] = operation {
503
503
execute : opPush1EIP4762 ,
504
504
constantGas : GasFastestStep ,
505
505
}
506
506
for i := 1 ; i < 32 ; i ++ {
507
- jt [PUSH1 + OpCode (i )] = & operation {
507
+ jt [PUSH1 + OpCode (i )] = operation {
508
508
execute : makePushEIP4762 (uint64 (i + 1 ), i + 1 ),
509
509
constantGas : GasFastestStep ,
510
510
}
0 commit comments