1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 23:38:09 +00:00
This commit is contained in:
Tomas Susanka 2019-06-26 10:23:32 +02:00
parent 5394d5a5a5
commit 4fbac3ec63
2 changed files with 4 additions and 16 deletions

View File

@ -246,11 +246,7 @@ async def slip39_show_checklist_set_shares(ctx):
checklist.add(("Write down and check", "all shares")) checklist.add(("Write down and check", "all shares"))
checklist.select(0) checklist.select(0)
return await confirm( return await confirm(
ctx, ctx, checklist, ButtonRequestType.ResetDevice, cancel=None, confirm="Continue"
checklist,
ButtonRequestType.ResetDevice,
cancel=None,
confirm="Continue",
) )
@ -261,11 +257,7 @@ async def slip39_show_checklist_set_threshold(ctx, num_of_shares):
checklist.add(("Write down and check", "all backup shares")) checklist.add(("Write down and check", "all backup shares"))
checklist.select(1) checklist.select(1)
return await confirm( return await confirm(
ctx, ctx, checklist, ButtonRequestType.ResetDevice, cancel=None, confirm="Continue"
checklist,
ButtonRequestType.ResetDevice,
cancel=None,
confirm="Continue",
) )
@ -276,11 +268,7 @@ async def slip39_show_checklist_show_shares(ctx, num_of_shares, threshold):
checklist.add(("Write down and check", "all backup shares")) checklist.add(("Write down and check", "all backup shares"))
checklist.select(2) checklist.select(2)
return await confirm( return await confirm(
ctx, ctx, checklist, ButtonRequestType.ResetDevice, cancel=None, confirm="Continue"
checklist,
ButtonRequestType.ResetDevice,
cancel=None,
confirm="Continue",
) )

View File

@ -1,4 +1,5 @@
from trezor import config, ui, wire from trezor import config, ui, wire
from trezor.crypto import slip39
from trezor.messages import ButtonRequestType from trezor.messages import ButtonRequestType
from trezor.messages.ButtonRequest import ButtonRequest from trezor.messages.ButtonRequest import ButtonRequest
from trezor.messages.MessageType import ButtonAck from trezor.messages.MessageType import ButtonAck
@ -10,7 +11,6 @@ from trezor.ui.mnemonic_slip39 import Slip39Keyboard
from trezor.ui.text import Text from trezor.ui.text import Text
from trezor.ui.word_select import WordSelector from trezor.ui.word_select import WordSelector
from trezor.utils import format_ordinal from trezor.utils import format_ordinal
from trezor.crypto import slip39
from apps.common import mnemonic, storage from apps.common import mnemonic, storage
from apps.common.confirm import require_confirm from apps.common.confirm import require_confirm