mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
fix #4255
This commit is contained in:
parent
3bf5afa61a
commit
986985c398
1 changed files with 2 additions and 0 deletions
|
@ -662,6 +662,8 @@ class ElectrumWindow(App):
|
||||||
|
|
||||||
def get_max_amount(self):
|
def get_max_amount(self):
|
||||||
inputs = self.wallet.get_spendable_coins(None, self.electrum_config)
|
inputs = self.wallet.get_spendable_coins(None, self.electrum_config)
|
||||||
|
if not inputs:
|
||||||
|
return ''
|
||||||
addr = str(self.send_screen.screen.address) or self.wallet.dummy_address()
|
addr = str(self.send_screen.screen.address) or self.wallet.dummy_address()
|
||||||
outputs = [(TYPE_ADDRESS, addr, '!')]
|
outputs = [(TYPE_ADDRESS, addr, '!')]
|
||||||
tx = self.wallet.make_unsigned_transaction(inputs, outputs, self.electrum_config)
|
tx = self.wallet.make_unsigned_transaction(inputs, outputs, self.electrum_config)
|
||||||
|
|
Loading…
Add table
Reference in a new issue