From 9e3ae93796ff06aa429b38af09f3fabc5c21be73 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 4 Oct 2018 18:15:03 +0200 Subject: [PATCH] src/apps/management: fix storage.load_mnemonic calls --- src/apps/management/load_device.py | 2 +- src/apps/management/recovery_device.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/management/load_device.py b/src/apps/management/load_device.py index fb8db1741..4a2f9ba92 100644 --- a/src/apps/management/load_device.py +++ b/src/apps/management/load_device.py @@ -24,7 +24,7 @@ async def load_device(ctx, msg): text.normal("Continue only if you", "know what you are doing!") await require_confirm(ctx, text) - storage.load_mnemonic(mnemonic=msg.mnemonic, needs_backup=True) + storage.load_mnemonic(mnemonic=msg.mnemonic, needs_backup=True, no_backup=False) storage.load_settings(use_passphrase=msg.passphrase_protection, label=msg.label) if msg.pin: config.change_pin(pin_to_int(""), pin_to_int(msg.pin), None) diff --git a/src/apps/management/recovery_device.py b/src/apps/management/recovery_device.py index 9274b0e1c..b31e6fc3c 100644 --- a/src/apps/management/recovery_device.py +++ b/src/apps/management/recovery_device.py @@ -47,7 +47,7 @@ async def recovery_device(ctx, msg): if msg.pin_protection: config.change_pin(pin_to_int(""), pin_to_int(newpin), None) storage.load_settings(label=msg.label, use_passphrase=msg.passphrase_protection) - storage.load_mnemonic(mnemonic=mnemonic, needs_backup=False) + storage.load_mnemonic(mnemonic=mnemonic, needs_backup=False, no_backup=False) return Success(message="Device recovered") else: if storage.get_mnemonic() == mnemonic: