We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e04a7e commit f028dffCopy full SHA for f028dff
src/wallet.js
@@ -297,7 +297,7 @@ Wallet.prototype.setUnspentOutputs = function(unspents) {
297
// FIXME: remove in 2.0.0
298
if (index === undefined) {
299
console.warn('unspent.outputIndex is deprecated, use unspent.index instead')
300
- index = utxo.outputIndex
+ index = unspent.outputIndex
301
}
302
303
assert.equal(typeof txId, 'string', 'Expected txId, got ' + txId)
@@ -313,7 +313,7 @@ Wallet.prototype.setUnspentOutputs = function(unspents) {
313
314
var txHash = bufferutils.reverse(new Buffer(txId, 'hex'))
315
316
- var unspent = {
+ unspent = {
317
address: unspent.address,
318
confirmations: unspent.confirmations || 0,
319
index: index,
0 commit comments