From 300facf7aa2dfe8a32e451e99ab1756af4b8e9ae Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Sat, 16 Aug 2014 17:22:34 +1000 Subject: [PATCH] Wallet: use === when comparing with undefined --- src/wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet.js b/src/wallet.js index 3b3daeb..270b270 100644 --- a/src/wallet.js +++ b/src/wallet.js @@ -67,7 +67,7 @@ Wallet.prototype.createTx = function(to, value, fixedFee, changeAddress) { var outpoint = utxo.from.split(':') tx.addInput(outpoint[0], parseInt(outpoint[1])) - var fee = fixedFee == undefined ? estimatePaddedFee(tx, this.network) : fixedFee + var fee = fixedFee === undefined ? estimatePaddedFee(tx, this.network) : fixedFee accum += utxo.value subTotal = value + fee