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:
parent
d85f7ac6bb
commit
a58e24ad2b
@ -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, 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()
|
address = '\\x'.join([address[i:i + 2] for i in range(0, len(address), 2)])[2:].lower()
|
||||||
if python:
|
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:
|
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)
|
return len(tokens)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user