File tree 1 file changed +0
-11
lines changed
1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -547,17 +547,10 @@ export const handlers: { [k: string]: OpHandler } = {
547
547
} ,
548
548
JUMPDEST : function ( runState : RunState ) { } ,
549
549
BEGINSUB : function ( runState : RunState ) {
550
- if ( ! runState . _common . gteHardfork ( 'berlin' ) ) {
551
- trap ( ERROR . INVALID_OPCODE )
552
- }
553
-
554
550
trap ( ERROR . INVALID_BEGINSUB + ' at ' + describeLocation ( runState ) )
555
551
} ,
556
552
JUMPSUB : function ( runState : RunState ) {
557
553
const dest = runState . stack . pop ( )
558
- if ( ! runState . _common . gteHardfork ( 'berlin' ) ) {
559
- trap ( ERROR . INVALID_OPCODE )
560
- }
561
554
562
555
if ( dest . gt ( runState . eei . getCodeSize ( ) ) ) {
563
556
trap ( ERROR . INVALID_JUMPSUB + ' at ' + describeLocation ( runState ) )
@@ -573,10 +566,6 @@ export const handlers: { [k: string]: OpHandler } = {
573
566
runState . programCounter = destNum + 1
574
567
} ,
575
568
RETURNSUB : function ( runState : RunState ) {
576
- if ( ! runState . _common . gteHardfork ( 'berlin' ) ) {
577
- trap ( ERROR . INVALID_OPCODE )
578
- }
579
-
580
569
if ( runState . returnStack . length < 1 ) {
581
570
trap ( ERROR . INVALID_RETURNSUB )
582
571
}
You can’t perform that action at this time.
0 commit comments