This commit is contained in:
Matias Alejo Garcia 2014-11-01 16:29:37 -03:00
commit 2564cb22d7

View file

@ -2367,17 +2367,17 @@ Wallet.prototype.createTxSync = function(toAddress, amountSatStr, comment, utxos
var b; var b;
try { // try {
b = new Builder(opts) b = new Builder(opts)
.setUnspent(utxos) .setUnspent(utxos)
.setOutputs([{ .setOutputs([{
address: toAddress.data, address: toAddress.data,
amountSatStr: amountSatStr, amountSatStr: amountSatStr,
}]); }]);
} catch (e) { // } catch (e) {
log.debug(e.message); // log.debug(e.message);
return; // return;
}; // };
var selectedUtxos = b.getSelectedUnspent(); var selectedUtxos = b.getSelectedUnspent();
var inputChainPaths = selectedUtxos.map(function(utxo) { var inputChainPaths = selectedUtxos.map(function(utxo) {