Skip to content

Commit cf9589f

Browse files
committed
trap if not constantinople
1 parent 588f0bb commit cf9589f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/opFns.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,10 @@ module.exports = {
520520
makeCall(runState, options, localOpts, done)
521521
},
522522
CREATE2: function (value, offset, length, runState, done) {
523+
if (!runState._common.gteHardfork('constantinople')) {
524+
trap(ERROR.INVALID_OPCODE)
525+
}
526+
523527
if (runState.static) {
524528
trap(ERROR.STATIC_STATE_CHANGE)
525529
}

0 commit comments

Comments
 (0)