Skip to content

Commit

Permalink
Use invalid init code on colission
Browse files Browse the repository at this point in the history
  • Loading branch information
rmeissner authored and holgerd77 committed Oct 23, 2018
1 parent cac03b6 commit ea23f87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/runCall.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ module.exports = function (opts, cb) {
}

if ((account.nonce && new BN(account.nonce) > 0) || account.codeHash.compare(EMPTY_CODE_HASH) !== 0) {
done(ERROR.INVALID_OPCODE)
toAccount = account
code = new Buffer("0xfe", "hex") // Invalid init code
done()
return
}

Expand Down

0 comments on commit ea23f87

Please sign in to comment.