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:
parent
ecbf11e122
commit
73d62b1dc4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user