retrieve receipt

pull/7/head
yann300 7 years ago
parent 7243e0b211
commit c79cd13352
  1. 8
      remix-lib/src/execution/txListener.js

@ -200,14 +200,16 @@ class TxListener {
_resolve (transactions, callback) {
async.each(transactions, (tx, cb) => {
this._resolveTx(tx, (error, resolvedData) => {
executionContext.web3().eth.getTransactionReceipt(tx.hash, (error, receipt) => {
this._resolveTx(receipt, (error, resolvedData) => {
if (error) cb(error)
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()
})
})
}, () => {
callback()
})

Loading…
Cancel
Save