From 46a5ca7500e9ef0a6300627bea54ec66d25497d1 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 5 Dec 2015 04:18:21 -0800 Subject: [PATCH] minor fix for wallet.fill. --- lib/bcoin/wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)