mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-10 23:40:58 +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
|
from trezor import res, ui, wire
|
||||||
|
|
||||||
|
|
||||||
async def request_passphrase(ctx):
|
async def request_passphrase(ctx):
|
||||||
from trezor.ui.text import Text
|
from trezor.ui.text import Text
|
||||||
from trezor.ui.entry_select import EntrySelector
|
from trezor.ui.entry_select import EntrySelector
|
||||||
@ -11,7 +12,7 @@ async def request_passphrase(ctx):
|
|||||||
entry = EntrySelector(text)
|
entry = EntrySelector(text)
|
||||||
entry_type = await entry
|
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.FailureType import ActionCancelled, ProcessError
|
||||||
from trezor.messages.PassphraseRequest import PassphraseRequest
|
from trezor.messages.PassphraseRequest import PassphraseRequest
|
||||||
@ -50,6 +51,7 @@ async def request_passphrase(ctx):
|
|||||||
|
|
||||||
return passphrase
|
return passphrase
|
||||||
|
|
||||||
|
|
||||||
async def protect_by_passphrase(ctx):
|
async def protect_by_passphrase(ctx):
|
||||||
from apps.common import storage
|
from apps.common import storage
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user