@@ -162,7 +162,7 @@ module.exports = {
162162 return new BN ( word . shrn ( ( 31 - pos . toNumber ( ) ) * 8 ) . andln ( 0xff ) )
163163 } ,
164164 SHL : function ( a , b , runState ) {
165- if ( ! runState . _common . hardforkIsActiveOnBlock ( "constantinople" , runState . block . header . number ) ) {
165+ if ( ! isHardforkActive ( runState , 'constantinople' ) ) {
166166 trap ( ERROR . INVALID_OPCODE )
167167 }
168168 if ( a . gten ( 256 ) ) {
@@ -171,7 +171,7 @@ module.exports = {
171171 return b . shln ( a . toNumber ( ) )
172172 } ,
173173 SHR : function ( a , b , runState ) {
174- if ( ! runState . _common . hardforkIsActiveOnBlock ( "constantinople" , runState . block . header . number ) ) {
174+ if ( ! isHardforkActive ( runState , 'constantinople' ) ) {
175175 trap ( ERROR . INVALID_OPCODE )
176176 }
177177 if ( a . gten ( 256 ) ) {
@@ -180,7 +180,7 @@ module.exports = {
180180 return b . shrn ( a . toNumber ( ) )
181181 } ,
182182 SAR : function ( a , b , runState ) {
183- if ( ! runState . _common . hardforkIsActiveOnBlock ( "constantinople" , runState . block . header . number ) ) {
183+ if ( ! isHardforkActive ( runState , 'constantinople' ) ) {
184184 trap ( ERROR . INVALID_OPCODE )
185185 }
186186 b = b . fromTwos ( 256 )
0 commit comments