wizard: allow to choose derivation again if script type is not supported (instead of closing the wizard)
This commit is contained in:
@@ -10,6 +10,7 @@ from electrum.i18n import _
|
||||
from electrum.plugins import BasePlugin
|
||||
from electrum.transaction import deserialize
|
||||
from electrum.keystore import Hardware_KeyStore, is_xpubkey, parse_xpubkey
|
||||
from electrum.base_wizard import ScriptTypeNotSupported
|
||||
|
||||
from ..hw_wallet import HW_PluginBase
|
||||
|
||||
@@ -208,6 +209,8 @@ class KeepKeyCompatiblePlugin(HW_PluginBase):
|
||||
client.used()
|
||||
|
||||
def get_xpub(self, device_id, derivation, xtype, wizard):
|
||||
if xtype not in ('standard',):
|
||||
raise ScriptTypeNotSupported(_('This type of script is not supported with KeepKey.'))
|
||||
devmgr = self.device_manager()
|
||||
client = devmgr.client_by_id(device_id)
|
||||
client.handler = wizard
|
||||
|
||||
Reference in New Issue
Block a user