From a22c2ecc7abdda22a5c1a2a04475ecb776cfd2cc Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 11 Jun 2018 16:59:49 +0200 Subject: [PATCH] retrieve receipt --- remix-lib/src/execution/txListener.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/remix-lib/src/execution/txListener.js b/remix-lib/src/execution/txListener.js index ede2cd7b0e..b596081d66 100644 --- a/remix-lib/src/execution/txListener.js +++ b/remix-lib/src/execution/txListener.js @@ -200,13 +200,15 @@ class TxListener { _resolve (transactions, callback) { async.each(transactions, (tx, cb) => { - this._resolveTx(tx, (error, resolvedData) => { - if (error) cb(error) - if (resolvedData) { - this.event.trigger('txResolved', [tx, resolvedData]) - } - this.event.trigger('newTransaction', [tx]) - cb() + executionContext.web3().eth.getTransactionReceipt(tx.hash, (error, receipt) => { + this._resolveTx(receipt, (error, resolvedData) => { + if (error) cb(error) + if (resolvedData) { + this.event.trigger('txResolved', [receipt, resolvedData]) + } + this.event.trigger('newTransaction', [receipt]) + cb() + }) }) }, () => { callback()