Support web3.personal.unlockAccountAndSendTransaction

pull/1/head
Alex Beregszaszi 8 years ago
parent 255849e593
commit 6c8dd998a4
  1. 4
      src/universal-dapp.js

@ -730,7 +730,9 @@ UniversalDApp.prototype.runTx = function (data, args, cb) {
tx.gas = resp; tx.gas = resp;
self.web3.eth.sendTransaction(tx, function (err, resp) { var sendTransaction = self.personalMode ? self.web3.personal.unlockAccountAndSendTransaction : self.web3.eth.sendTransaction;
sendTransaction(tx, function (err, resp) {
if (err) { if (err) {
return cb(err, resp); return cb(err, resp);
} }

Loading…
Cancel
Save