@@ -539,7 +539,7 @@ module.exports = {
539539 outLength : new BN ( 0 )
540540 }
541541
542- // Deduct gas costs for hashingq
542+ // Deduct gas costs for hashing
543543 subGas ( runState , new BN ( runState . _common . param ( 'gasPrices' , 'sha3Word' ) ) . imul ( length . divCeil ( new BN ( 32 ) ) ) )
544544 checkCallMemCost ( runState , options , localOpts )
545545 checkOutOfGas ( runState , options )
@@ -1011,7 +1011,7 @@ function makeCall (runState, callOptions, localOpts, cb) {
10111011 if ( results . vm . return && ( ! results . vm . exceptionError || results . vm . exceptionError . error === ERROR . REVERT ) ) {
10121012 memStore ( runState , localOpts . outOffset , results . vm . return , new BN ( 0 ) , localOpts . outLength , false )
10131013
1014- if ( results . vm . exceptionError && results . vm . exceptionError . error === ERROR . REVERT && runState . opName === 'CREATE' ) {
1014+ if ( results . vm . exceptionError && results . vm . exceptionError . error === ERROR . REVERT && isCreateOpCode ( runState . opName ) ) {
10151015 runState . lastReturned = results . vm . return
10161016 }
10171017
@@ -1049,6 +1049,10 @@ function makeCall (runState, callOptions, localOpts, cb) {
10491049 }
10501050}
10511051
1052+ function isCreateOpCode ( opName ) {
1053+ return opName === 'CREATE' || opName === 'CREATE2'
1054+ }
1055+
10521056function getContractStorage ( runState , address , key , cb ) {
10531057 if ( runState . _common . gteHardfork ( 'constantinople' ) ) {
10541058 async . parallel ( {
0 commit comments