Browse Source

test wallet type in restore hook

master
ThomasV 11 years ago
parent
commit
cbeb8abe4a
  1. 2
      plugins/btchipwallet.py

2
plugins/btchipwallet.py

@ -86,6 +86,8 @@ class Plugin(BasePlugin):
@hook
def installwizard_restore(self, wizard, storage):
if storage.get('wallet_type') != 'btchip':
return
wallet = BTChipWallet(storage)
try:
wallet.create_main_account(None)

Loading…
Cancel
Save