1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-30 03:18:20 +00:00

Merge pull request #902 from ExodusMovement/master

Fix BackupDevice layout on 18-word seed wallets
This commit is contained in:
Tomas Susanka 2020-03-13 10:35:15 +01:00 committed by GitHub
commit 0f95eff4ff
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: