Skip to content

Commit ea23f87

Browse files
rmeissnerholgerd77
authored andcommitted
Use invalid init code on colission
1 parent cac03b6 commit ea23f87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/runCall.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ module.exports = function (opts, cb) {
9494
}
9595

9696
if ((account.nonce && new BN(account.nonce) > 0) || account.codeHash.compare(EMPTY_CODE_HASH) !== 0) {
97-
done(ERROR.INVALID_OPCODE)
97+
toAccount = account
98+
code = new Buffer("0xfe", "hex") // Invalid init code
99+
done()
98100
return
99101
}
100102

0 commit comments

Comments
 (0)