1
0
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:
Pavol Rusnak 2018-02-14 23:53:10 +01:00
parent 736dec1419
commit f65c409416
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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