From 084ed0c999e03a7786e55adaf7e73b0f47fdd771 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 28 Aug 2018 11:10:20 +0200 Subject: [PATCH] Update txRunner.js --- remix-lib/src/execution/txRunner.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/remix-lib/src/execution/txRunner.js b/remix-lib/src/execution/txRunner.js index 30b60fa6fd..9a38016c91 100644 --- a/remix-lib/src/execution/txRunner.js +++ b/remix-lib/src/execution/txRunner.js @@ -135,7 +135,7 @@ TxRunner.prototype.runInNode = function (from, to, data, value, gasLimit, useCal return executionContext.web3().eth.call(tx, function (error, result) { callback(error, { result: result, - transactionHash: result.transactionHash + transactionHash: result ? result.transactionHash : null }) }) } @@ -187,7 +187,7 @@ function tryTillResponse (txhash, done) { } else { done(err, { result: result, - transactionHash: result.transactionHash + transactionHash: result ? result.transactionHash : null }) } })