Browse Source

Wallet: fix missing variable utxo

hk-custom-address
Daniel Cousens 11 years ago
parent
commit
f028dfffa9
  1. 4
      src/wallet.js

4
src/wallet.js

@ -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,

Loading…
Cancel
Save