Skip to content

Commit

Permalink
UDapp: handle errors from sendTransaction()
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jun 8, 2016
1 parent ffc8e95 commit 9235606
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/universal-dapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,10 @@ UniversalDApp.prototype.runTx = function (data, args, cb) {
tx.gas = resp;

self.web3.eth.sendTransaction(tx, function (err, resp) {
if (err) {
return cb(err, resp);
}

tryTillResponse(self.web3, resp, cb);
});
});
Expand Down

0 comments on commit 9235606

Please sign in to comment.