1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-23 14:58:09 +00:00

Fix BackupDevice layout on 18-word seed wallets

This commit is contained in:
Konnor Klashinsky 2020-03-13 13:41:04 +13:00 committed by GitHub
parent 2f905a1157
commit 70a1f957ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ def _split_share_into_pages(share_words):
if length == 12 or length == 20 or length == 24: if length == 12 or length == 20 or length == 24:
middle = share[2:-2] middle = share[2:-2]
last = share[-2:] # two words on the last page last = share[-2:] # two words on the last page
elif length == 33: elif length == 33 or length == 18:
middle = share[2:] middle = share[2:]
last = [] # no words at the last page, because it does not add up last = [] # no words at the last page, because it does not add up
else: else: