1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

style: fix flake8 warnings

This commit is contained in:
Pavol Rusnak 2018-06-21 17:04:00 +02:00
parent ac0bdd5902
commit d38d4d2b36
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
5 changed files with 2 additions and 12 deletions

View File

@ -1,4 +1,3 @@
from micropython import const
from trezor import wire
from trezor.crypto import bip32, bip39
from apps.common import cache, storage

View File

@ -18,7 +18,6 @@ if __debug__:
swipe_signal = loop.signal()
input_signal = loop.signal()
async def dispatch_DebugLinkDecision(ctx, msg):
if msg.yes_no is not None:
confirm_signal.send(confirm.CONFIRMED if msg.yes_no else confirm.CANCELLED)
@ -27,7 +26,6 @@ if __debug__:
if msg.input is not None:
input_signal.send(msg.input)
async def dispatch_DebugLinkGetState(ctx, msg):
m = DebugLinkState()
m.mnemonic = storage.get_mnemonic()
@ -38,7 +36,6 @@ if __debug__:
m.reset_word = ' '.join(reset_current_words)
return m
def boot():
# wipe storage when debug build is used
storage.wipe()

View File

@ -321,7 +321,7 @@ tokens = [
(1, b'\xff\xe8\x19\x6b\xc2\x59\xe8\xde\xdc\x54\x4d\x93\x57\x86\xaa\x47\x09\xec\x3e\x64', 'HDG', 18), # eth / Hedge Crypto
(1, b'\xe9\xff\x07\x80\x9c\xcf\xf0\x5d\xae\x74\x99\x0e\x25\x83\x1d\x0b\xc5\xcb\xe5\x75', 'Hdp', 18), # eth / HEdpAY
(1, b'\xba\x21\x84\x52\x0a\x1c\xc4\x9a\x61\x59\xc5\x7e\x61\xe1\x84\x4e\x08\x56\x15\xb6', 'HGT', 8), # eth / HGT
(1, b'\xa9\x24\x0f\xbc\xac\x1f\x0b\x9a\x6a\xdf\xb0\x4a\x53\xc8\xe3\xb0\xcc\x1d\x14\x44', 'HIG', 18), # eth / ethereumhigh
(1, b'\xa9\x24\x0f\xbc\xac\x1f\x0b\x9a\x6a\xdf\xb0\x4a\x53\xc8\xe3\xb0\xcc\x1d\x14\x44', 'HIG', 18), # eth / ethereumhigh
(1, b'\x14\xf3\x7b\x57\x42\x42\xd3\x66\x55\x8d\xb6\x1f\x33\x35\x28\x9a\x50\x35\xc5\x06', 'HKG', 3), # eth / HKG
(1, b'\x88\xac\x94\xd5\xd1\x75\x13\x03\x47\xfc\x95\xe1\x09\xd7\x7a\xc0\x9d\xbf\x5a\xb7', 'HKY', 18), # eth / Hicky
(1, b'\xcb\xcc\x0f\x03\x6e\xd4\x78\x8f\x63\xfc\x0f\xee\x32\x87\x3d\x6a\x74\x87\xb9\x08', 'HMQ', 8), # eth / HMQ

View File

@ -35,9 +35,4 @@ async def _show_address(ctx, address: str, network: int):
ui.NORMAL, '%s network' % get_network_str(network),
ui.MONO, *lines,
icon_color=ui.GREEN)
return await confirm(
ctx,
content,
code=ButtonRequestType.Address,
cancel='QR',
cancel_style=ui.BTN_KEY)
return await confirm(ctx, content, code=ButtonRequestType.Address, cancel='QR', cancel_style=ui.BTN_KEY)

View File

@ -4,7 +4,6 @@ from trezor.utils import chunks, format_amount
from trezor.ui.text import Text
from trezor.messages import ButtonRequestType
from trezor.messages import OutputScriptType
from apps.common import coins
from apps.common.confirm import confirm
from apps.common.confirm import hold_to_confirm