mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-06 20:52:40 +00:00
core/recovery: fix Info dialog
closes #562
(cherry picked from commit 51bf0dde12
)
This commit is contained in:
parent
53e2d63b18
commit
cb1b8c4c77
@ -215,10 +215,10 @@ async def _show_remaining_groups_and_shares(ctx: wire.Context) -> None:
|
|||||||
share = None
|
share = None
|
||||||
for i, r in enumerate(shares_remaining):
|
for i, r in enumerate(shares_remaining):
|
||||||
if 0 < r < slip39.MAX_SHARE_COUNT:
|
if 0 < r < slip39.MAX_SHARE_COUNT:
|
||||||
|
m = storage.recovery_shares.fetch_group(i)[0]
|
||||||
if not share:
|
if not share:
|
||||||
m = storage.recovery_shares.fetch_group(i)[0]
|
|
||||||
share = slip39.decode_mnemonic(m)
|
share = slip39.decode_mnemonic(m)
|
||||||
identifier = mnemonic.split(" ")[0:3]
|
identifier = m.split(" ")[0:3]
|
||||||
identifiers.append([r, identifier])
|
identifiers.append([r, identifier])
|
||||||
elif r == slip39.MAX_SHARE_COUNT:
|
elif r == slip39.MAX_SHARE_COUNT:
|
||||||
identifier = storage.recovery_shares.fetch_group(first_entered_index)[
|
identifier = storage.recovery_shares.fetch_group(first_entered_index)[
|
||||||
|
Loading…
Reference in New Issue
Block a user