UDapp: handle errors from sendTransaction()

pull/1/head
Alex Beregszaszi 9 years ago
parent ffc8e9571e
commit 923560695f
  1. 4
      src/universal-dapp.js

@ -611,6 +611,10 @@ UniversalDApp.prototype.runTx = function (data, args, cb) {
tx.gas = resp; tx.gas = resp;
self.web3.eth.sendTransaction(tx, function (err, resp) { self.web3.eth.sendTransaction(tx, function (err, resp) {
if (err) {
return cb(err, resp);
}
tryTillResponse(self.web3, resp, cb); tryTillResponse(self.web3, resp, cb);
}); });
}); });

Loading…
Cancel
Save