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

tools: take coin_label for human readable name instead of coin_name

This commit is contained in:
matejcik 2018-09-18 13:28:00 +02:00
parent 265935811e
commit 8065966e57

View File

@ -193,7 +193,7 @@ def _load_btc_coins():
for filename in glob.glob(os.path.join(DEFS_DIR, "coins", "*.json")): for filename in glob.glob(os.path.join(DEFS_DIR, "coins", "*.json")):
coin = load_json(filename) coin = load_json(filename)
coin.update( coin.update(
name=coin["coin_name"], name=coin["coin_label"],
shortcut=coin["coin_shortcut"], shortcut=coin["coin_shortcut"],
key="bitcoin:{}".format(coin["coin_shortcut"]), key="bitcoin:{}".format(coin["coin_shortcut"]),
icon=filename.replace(".json", ".png"), icon=filename.replace(".json", ".png"),