Permit empty passphrases when creating HW wallet
They used to be confused as a user cancel. Fixes #1788 Also fix Cancel pressed in passphrase dialog when *restoring* a hardware wallet in install wizard; it used to be taken as an empty passphrase. Like the password dialog it now cancels the wizard.
This commit is contained in:
@@ -62,7 +62,7 @@ class HW_PluginBase(BasePlugin):
|
||||
wallet.storage.put('wallet_type', wallet_class.wallet_type)
|
||||
wallet = wallet_class(wallet.storage)
|
||||
|
||||
passphrase = wizard.request_passphrase(self.device, restore=True)
|
||||
passphrase = wizard.request_passphrase(self.device)
|
||||
password = wizard.request_password()
|
||||
wallet.add_seed(seed, password)
|
||||
wallet.add_xprv_from_seed(seed, 'x/', password, passphrase)
|
||||
|
||||
Reference in New Issue
Block a user