1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00

update typo in ethereum_tokens-gen.py

This commit is contained in:
Pavol Rusnak 2018-02-28 22:47:59 +01:00
parent d85f7ac6bb
commit a58e24ad2b
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -20,9 +20,9 @@ def print_tokens(ipfs_hash, chain, chain_id, python=False):
address, name, symbol, decimal = t['address'], t['name'], t['symbol'], int(t['decimals'])
address = '\\x'.join([address[i:i + 2] for i in range(0, len(address), 2)])[2:].lower()
if python:
print(" {'chain_id': %2d, 'address': b'%s', 'symbol': '%s', 'decimal': %d}, # %s " % (chain_id, address, symbol, decimal, name))
print(" (%d, b'%s', '%s', %d), # %s" % (chain_id, address, symbol, decimal, name))
else:
print('\t{%2d, "%s", " %s", %d}, // %s ' % (chain_id, address, symbol, decimal, name))
print('\t{%2d, "%s", " %s", %d}, // %s' % (chain_id, address, symbol, decimal, name))
return len(tokens)