restore action-driven wizard logic
This commit is contained in:
@@ -449,7 +449,7 @@ class LedgerPlugin(BasePlugin):
|
||||
password = wizard.request_password()
|
||||
wallet.add_seed(seed, password)
|
||||
wallet.add_cosigner_seed(seed, 'x/', password, passphrase)
|
||||
wallet.create_main_account(password)
|
||||
wallet.create_hd_account(password)
|
||||
return wallet
|
||||
|
||||
@hook
|
||||
|
||||
@@ -24,7 +24,7 @@ class Plugin(LedgerPlugin):
|
||||
|
||||
def on_create_wallet(self, wallet, wizard):
|
||||
self.handler = BTChipQTHandler(wizard)
|
||||
wallet.create_main_account(None)
|
||||
wallet.create_main_account()
|
||||
|
||||
class BTChipQTHandler:
|
||||
|
||||
|
||||
@@ -327,7 +327,7 @@ class TrezorCompatiblePlugin(BasePlugin, ThreadJob):
|
||||
password = wizard.request_password()
|
||||
wallet.add_seed(seed, password)
|
||||
wallet.add_cosigner_seed(seed, 'x/', password, passphrase)
|
||||
wallet.create_main_account(password)
|
||||
wallet.create_hd_account(password)
|
||||
return wallet
|
||||
|
||||
def sign_transaction(self, wallet, tx, prev_tx, xpub_path):
|
||||
|
||||
@@ -159,7 +159,7 @@ def qt_plugin_class(base_plugin_class):
|
||||
assert type(wallet) == self.wallet_class
|
||||
wallet.handler = self.create_handler(wizard)
|
||||
self.select_device(wallet, wizard)
|
||||
wallet.create_main_account(None)
|
||||
wallet.create_main_account()
|
||||
|
||||
@hook
|
||||
def receive_menu(self, menu, addrs, wallet):
|
||||
|
||||
@@ -364,7 +364,7 @@ class TrustedCoinPlugin(BasePlugin):
|
||||
wallet.add_cosigner_seed(' '.join(words[n:]), 'x2/', password)
|
||||
|
||||
restore_third_key(wallet)
|
||||
wallet.create_main_account(password)
|
||||
wallet.create_main_account()
|
||||
return wallet
|
||||
|
||||
def create_remote_key(self, wallet, window):
|
||||
@@ -406,4 +406,4 @@ class TrustedCoinPlugin(BasePlugin):
|
||||
|
||||
if self.setup_google_auth(window, short_id, otp_secret):
|
||||
wallet.add_master_public_key('x3/', xpub3)
|
||||
wallet.create_main_account(None)
|
||||
wallet.create_main_account()
|
||||
|
||||
Reference in New Issue
Block a user