Wallet: use === when comparing with undefined
This commit is contained in:
parent
4bb7f5b56d
commit
300facf7aa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue