mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 06:48:16 +00:00
src/apps/common: fix typos in request_passphrase
This commit is contained in:
parent
736dec1419
commit
f65c409416
@ -1,5 +1,6 @@
|
||||
from trezor import res, ui, wire
|
||||
|
||||
|
||||
async def request_passphrase(ctx):
|
||||
from trezor.ui.text import Text
|
||||
from trezor.ui.entry_select import EntrySelector
|
||||
@ -11,7 +12,7 @@ async def request_passphrase(ctx):
|
||||
entry = EntrySelector(text)
|
||||
entry_type = await entry
|
||||
|
||||
on_device = on_device=(entry_type == 0)
|
||||
on_device = (entry_type == 0)
|
||||
|
||||
from trezor.messages.FailureType import ActionCancelled, ProcessError
|
||||
from trezor.messages.PassphraseRequest import PassphraseRequest
|
||||
@ -50,6 +51,7 @@ async def request_passphrase(ctx):
|
||||
|
||||
return passphrase
|
||||
|
||||
|
||||
async def protect_by_passphrase(ctx):
|
||||
from apps.common import storage
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user