diff --git a/lib/commands.py b/lib/commands.py index 0482d5799..261f0ce4e 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -452,7 +452,7 @@ class Commands: if fee is None: for i in inputs: self.wallet.add_input_info(i) - output = ('address', to_address, amount) + output = ('address', address, amount) dummy_tx = Transaction.from_io(inputs, [output]) fee = self.wallet.estimated_fee(dummy_tx) amount -= fee