1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 05:28:40 +00:00

src/apps/management: fix storage.load_mnemonic calls

This commit is contained in:
Pavol Rusnak 2018-10-04 18:15:03 +02:00
parent ad5aa03a2d
commit 9e3ae93796
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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: