|
|
@ -200,14 +200,17 @@ class TxListener { |
|
|
|
|
|
|
|
|
|
|
|
_resolve (transactions, callback) { |
|
|
|
_resolve (transactions, callback) { |
|
|
|
async.each(transactions, (tx, cb) => { |
|
|
|
async.each(transactions, (tx, cb) => { |
|
|
|
this._resolveTx(tx, (error, resolvedData) => { |
|
|
|
executionContext.web3().eth.getTransactionReceipt(tx.hash, (error, receipt) => { |
|
|
|
|
|
|
|
if (error) return cb(error) |
|
|
|
|
|
|
|
this._resolveTx(receipt, (error, resolvedData) => { |
|
|
|
if (error) cb(error) |
|
|
|
if (error) cb(error) |
|
|
|
if (resolvedData) { |
|
|
|
if (resolvedData) { |
|
|
|
this.event.trigger('txResolved', [tx, resolvedData]) |
|
|
|
this.event.trigger('txResolved', [receipt, resolvedData]) |
|
|
|
} |
|
|
|
} |
|
|
|
this.event.trigger('newTransaction', [tx]) |
|
|
|
this.event.trigger('newTransaction', [receipt]) |
|
|
|
cb() |
|
|
|
cb() |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
}, () => { |
|
|
|
}, () => { |
|
|
|
callback() |
|
|
|
callback() |
|
|
|
}) |
|
|
|
}) |
|
|
|