From b549fdba114f41a47907cc4f9796ab34e61afb8c 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 47438ef2caa..00a7a3a0ef5 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 }