1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

core: fix missing value for mnemonic_type when upgrading firmware

This commit is contained in:
Pavol Rusnak 2019-05-17 00:31:41 +02:00
parent 2d3ef6ae3b
commit 1812be5d49
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -8,7 +8,7 @@ TYPE_BIP39 = 0
def get() -> (bytes, int):
mnemonic_secret = storage.get_mnemonic_secret()
mnemonic_type = storage.get_mnemonic_type()
mnemonic_type = storage.get_mnemonic_type() or TYPE_BIP39
return mnemonic_secret, mnemonic_type