Commit c79cd133 authored by yann300's avatar yann300

retrieve receipt

parent 7243e0b2
...@@ -200,13 +200,15 @@ class TxListener { ...@@ -200,13 +200,15 @@ 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) cb(error) this._resolveTx(receipt, (error, resolvedData) => {
if (resolvedData) { if (error) cb(error)
this.event.trigger('txResolved', [tx, resolvedData]) if (resolvedData) {
} this.event.trigger('txResolved', [receipt, resolvedData])
this.event.trigger('newTransaction', [tx]) }
cb() this.event.trigger('newTransaction', [receipt])
cb()
})
}) })
}, () => { }, () => {
callback() callback()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment