Skip to content

Commit f028dff

Browse files
committed
Wallet: fix missing variable utxo
1 parent 4e04a7e commit f028dff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ Wallet.prototype.setUnspentOutputs = function(unspents) {
297297
// FIXME: remove in 2.0.0
298298
if (index === undefined) {
299299
console.warn('unspent.outputIndex is deprecated, use unspent.index instead')
300-
index = utxo.outputIndex
300+
index = unspent.outputIndex
301301
}
302302

303303
assert.equal(typeof txId, 'string', 'Expected txId, got ' + txId)
@@ -313,7 +313,7 @@ Wallet.prototype.setUnspentOutputs = function(unspents) {
313313

314314
var txHash = bufferutils.reverse(new Buffer(txId, 'hex'))
315315

316-
var unspent = {
316+
unspent = {
317317
address: unspent.address,
318318
confirmations: unspent.confirmations || 0,
319319
index: index,

0 commit comments

Comments
 (0)