1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 01:48:17 +00:00

tools: strip ethereum token names

This commit is contained in:
Pavol Rusnak 2018-06-21 17:05:02 +02:00
parent ecbf11e122
commit 73d62b1dc4
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -34,6 +34,7 @@ def print_tokens(tokens, python=False):
ascii_only = re.match(r'^[ -\x7F]+$', symbol) is not None
if not ascii_only: # skip Unicode symbols, they are stupid
continue
name = name.strip()
count += 1
if python:
print(" (%d, b'%s', '%s', %d), # %s / %s" % (chain_id, address, symbol, decimal, chain, name)) # noqa:E501