From 2919e68d9130f186db924998b9580dc8fe40ca21 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 17 Apr 2018 14:56:32 +0200 Subject: [PATCH] Update web3VmProvider.js --- remix-lib/src/web3Provider/web3VmProvider.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/remix-lib/src/web3Provider/web3VmProvider.js b/remix-lib/src/web3Provider/web3VmProvider.js index a2eda0add7..e32bdf53a3 100644 --- a/remix-lib/src/web3Provider/web3VmProvider.js +++ b/remix-lib/src/web3Provider/web3VmProvider.js @@ -125,8 +125,10 @@ web3VmProvider.prototype.txProcessed = function (self, data) { var address = util.hexConvert(data.createdAddress) self.vmTraces[self.processingHash].return = address self.txsReceipt[self.processingHash].contractAddress = address - } else { + } else if (data.vm.return) { self.vmTraces[self.processingHash].return = util.hexConvert(data.vm.return) + } else { + self.vmTraces[self.processingHash].return = '0x' } this.processingIndex = null this.processingAddress = null