From ea23f87635ae1a782873b155faacc8088703e6aa Mon Sep 17 00:00:00 2001 From: Richard Meissner Date: Wed, 17 Oct 2018 12:17:53 +0200 Subject: [PATCH] Use invalid init code on colission --- lib/runCall.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/runCall.js b/lib/runCall.js index 47438ef2ca..00a7a3a0ef 100644 --- a/lib/runCall.js +++ b/lib/runCall.js @@ -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 }