Skip to content

Commit

Permalink
getCoinColorValue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
killerstorm committed Oct 30, 2015
1 parent cb604ac commit 3236524
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ColorData.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ ColorData.prototype.getCoinColorValue = function (coin, colorDefinition, getTxFn
var extraTx = {}
if (coin.txId instanceof bitcoin.Transaction) {
extraTx[coin.txId.getId()] = coin.txId
coin.txId = coin.txId.getId()
coin = {
txId: coin.txId.getId(),
outIndex: coin.outIndex
}
}

verify.txId(coin.txId)
Expand Down

0 comments on commit 3236524

Please sign in to comment.