Wallet: fix missing variable utxo

This commit is contained in:
Daniel Cousens 2014-09-08 23:14:57 +10:00
parent 4e04a7e883
commit f028dfffa9

View file

@ -297,7 +297,7 @@ Wallet.prototype.setUnspentOutputs = function(unspents) {
// FIXME: remove in 2.0.0
if (index === undefined) {
console.warn('unspent.outputIndex is deprecated, use unspent.index instead')
index = utxo.outputIndex
index = unspent.outputIndex
}
assert.equal(typeof txId, 'string', 'Expected txId, got ' + txId)
@ -313,7 +313,7 @@ Wallet.prototype.setUnspentOutputs = function(unspents) {
var txHash = bufferutils.reverse(new Buffer(txId, 'hex'))
var unspent = {
unspent = {
address: unspent.address,
confirmations: unspent.confirmations || 0,
index: index,