diff --git a/lib/bcoin/wallet.js b/lib/bcoin/wallet.js index 271a3edb..4936126d 100644 --- a/lib/bcoin/wallet.js +++ b/lib/bcoin/wallet.js @@ -399,7 +399,7 @@ Wallet.prototype.fill = function fill(tx, cb) { unspent.every(addInput, this); // Add dummy output (for `left`) to calculate maximum TX size - tx.out(options.change || this, new bn(0)); + tx.out(this, new bn(0)); // Change fee value if it is more than 1024 bytes // (10000 satoshi for every 1024 bytes)