Skip to content

Commit e4d08e9

Browse files
jwasingerrmeissner
authored andcommitted
trap if not constantinople
1 parent 2ffb618 commit e4d08e9

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
@@ -521,6 +521,10 @@ module.exports = {
521521
makeCall(runState, options, localOpts, done)
522522
},
523523
CREATE2: function (value, offset, length, runState, done) {
524+
if (!runState._common.gteHardfork('constantinople')) {
525+
trap(ERROR.INVALID_OPCODE)
526+
}
527+
524528
if (runState.static) {
525529
trap(ERROR.STATIC_STATE_CHANGE)
526530
}

0 commit comments

Comments
 (0)