diff --git a/lib/bcoin/mtx.js b/lib/bcoin/mtx.js index 6701fc81..1842d8ba 100644 --- a/lib/bcoin/mtx.js +++ b/lib/bcoin/mtx.js @@ -1004,7 +1004,7 @@ MTX.prototype.selectCoins = function selectCoins(coins, options) { } function total() { - if (options.subtractFee != null) + if (options.subtractFee || options.subtractFee === 0) return outputValue; return outputValue + fee; }