mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 14:58:09 +00:00
style
This commit is contained in:
parent
5394d5a5a5
commit
4fbac3ec63
@ -246,11 +246,7 @@ async def slip39_show_checklist_set_shares(ctx):
|
||||
checklist.add(("Write down and check", "all shares"))
|
||||
checklist.select(0)
|
||||
return await confirm(
|
||||
ctx,
|
||||
checklist,
|
||||
ButtonRequestType.ResetDevice,
|
||||
cancel=None,
|
||||
confirm="Continue",
|
||||
ctx, 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.select(1)
|
||||
return await confirm(
|
||||
ctx,
|
||||
checklist,
|
||||
ButtonRequestType.ResetDevice,
|
||||
cancel=None,
|
||||
confirm="Continue",
|
||||
ctx, 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.select(2)
|
||||
return await confirm(
|
||||
ctx,
|
||||
checklist,
|
||||
ButtonRequestType.ResetDevice,
|
||||
cancel=None,
|
||||
confirm="Continue",
|
||||
ctx, checklist, ButtonRequestType.ResetDevice, cancel=None, confirm="Continue"
|
||||
)
|
||||
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
from trezor import config, ui, wire
|
||||
from trezor.crypto import slip39
|
||||
from trezor.messages import ButtonRequestType
|
||||
from trezor.messages.ButtonRequest import ButtonRequest
|
||||
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.word_select import WordSelector
|
||||
from trezor.utils import format_ordinal
|
||||
from trezor.crypto import slip39
|
||||
|
||||
from apps.common import mnemonic, storage
|
||||
from apps.common.confirm import require_confirm
|
||||
|
Loading…
Reference in New Issue
Block a user