Commit 6c8dd998 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Support web3.personal.unlockAccountAndSendTransaction

parent 255849e5
...@@ -730,7 +730,9 @@ UniversalDApp.prototype.runTx = function (data, args, cb) { ...@@ -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);
} }
......
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