From 4c36e33425513402239530d24d093c47c162f97d Mon Sep 17 00:00:00 2001 From: matejcik Date: Mon, 27 Aug 2018 20:07:02 +0200 Subject: [PATCH] tools: make duplicate detection case-insensitive --- defs/support.json | 16 ++++++++-------- tools/coin_info.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/defs/support.json b/defs/support.json index d961fce263..0358937da9 100644 --- a/defs/support.json +++ b/defs/support.json @@ -244,8 +244,6 @@ "erc20:eth:DTH": "1.6.2", "erc20:eth:DTR": "1.6.2", "erc20:eth:DTT": "1.6.2", - "erc20:eth:DTX": "1.6.2", - "erc20:eth:DTx": "1.6.2", "erc20:eth:Devcon2 Token": "1.6.2", "erc20:eth:EAGLE": "1.6.2", "erc20:eth:ECN": "1.6.2", @@ -624,7 +622,6 @@ "erc20:eth:WCT": "1.6.2", "erc20:eth:WETH": "1.6.2", "erc20:eth:WHEN": "1.6.2", - "erc20:eth:WIC": "1.6.2", "erc20:eth:WILD": "1.6.2", "erc20:eth:WINGS": "1.6.2", "erc20:eth:WORK": "1.6.2", @@ -635,7 +632,6 @@ "erc20:eth:WYS": "1.6.2", "erc20:eth:WYV": "1.6.2", "erc20:eth:WaBi": "1.6.2", - "erc20:eth:WiC": "1.6.2", "erc20:eth:X8X": "1.6.2", "erc20:eth:XAUR": "1.6.2", "erc20:eth:XBP": "1.6.2", @@ -735,6 +731,8 @@ "erc20:eth:DROP (dropil)": "(AUTO) duplicate key", "erc20:eth:DRP:0": "(AUTO) duplicate key", "erc20:eth:DRP:1": "(AUTO) duplicate key", + "erc20:eth:DTX": "(AUTO) duplicate key", + "erc20:eth:DTx": "(AUTO) duplicate key", "erc20:eth:DUBI:0": "(AUTO) duplicate key", "erc20:eth:DUBI:1": "(AUTO) duplicate key", "erc20:eth:EDU:0": "(AUTO) duplicate key", @@ -800,8 +798,10 @@ "erc20:eth:VIBEX:1": "(AUTO) duplicate key", "erc20:eth:WHO:0": "(AUTO) duplicate key", "erc20:eth:WHO:1": "(AUTO) duplicate key", + "erc20:eth:WIC": "(AUTO) duplicate key", "erc20:eth:WOLK:0": "(AUTO) duplicate key", "erc20:eth:WOLK:1": "(AUTO) duplicate key", + "erc20:eth:WiC": "(AUTO) duplicate key", "erc20:eth:YEED:0": "(AUTO) duplicate key", "erc20:eth:YEED:1": "(AUTO) duplicate key", "erc20:eth:ZRX": "(AUTO) duplicate key", @@ -1054,8 +1054,6 @@ "erc20:eth:DTH": "2.0.7", "erc20:eth:DTR": "2.0.7", "erc20:eth:DTT": "2.0.7", - "erc20:eth:DTX": "2.0.7", - "erc20:eth:DTx": "2.0.7", "erc20:eth:Devcon2 Token": "2.0.7", "erc20:eth:EAGLE": "2.0.7", "erc20:eth:ECN": "2.0.7", @@ -1434,7 +1432,6 @@ "erc20:eth:WCT": "2.0.7", "erc20:eth:WETH": "2.0.7", "erc20:eth:WHEN": "2.0.7", - "erc20:eth:WIC": "2.0.7", "erc20:eth:WILD": "2.0.7", "erc20:eth:WINGS": "2.0.7", "erc20:eth:WORK": "2.0.7", @@ -1445,7 +1442,6 @@ "erc20:eth:WYS": "2.0.7", "erc20:eth:WYV": "2.0.7", "erc20:eth:WaBi": "2.0.7", - "erc20:eth:WiC": "2.0.7", "erc20:eth:X8X": "2.0.7", "erc20:eth:XAUR": "2.0.7", "erc20:eth:XBP": "2.0.7", @@ -1551,6 +1547,8 @@ "erc20:eth:DROP (dropil)": "(AUTO) duplicate key", "erc20:eth:DRP:0": "(AUTO) duplicate key", "erc20:eth:DRP:1": "(AUTO) duplicate key", + "erc20:eth:DTX": "(AUTO) duplicate key", + "erc20:eth:DTx": "(AUTO) duplicate key", "erc20:eth:DUBI:0": "(AUTO) duplicate key", "erc20:eth:DUBI:1": "(AUTO) duplicate key", "erc20:eth:EDU:0": "(AUTO) duplicate key", @@ -1616,8 +1614,10 @@ "erc20:eth:VIBEX:1": "(AUTO) duplicate key", "erc20:eth:WHO:0": "(AUTO) duplicate key", "erc20:eth:WHO:1": "(AUTO) duplicate key", + "erc20:eth:WIC": "(AUTO) duplicate key", "erc20:eth:WOLK:0": "(AUTO) duplicate key", "erc20:eth:WOLK:1": "(AUTO) duplicate key", + "erc20:eth:WiC": "(AUTO) duplicate key", "erc20:eth:YEED:0": "(AUTO) duplicate key", "erc20:eth:YEED:1": "(AUTO) duplicate key", "erc20:eth:ZRX": "(AUTO) duplicate key", diff --git a/tools/coin_info.py b/tools/coin_info.py index 4c4617ba48..c32a2df42c 100755 --- a/tools/coin_info.py +++ b/tools/coin_info.py @@ -387,7 +387,7 @@ def mark_duplicate_shortcuts(coins): return {k: v for k, v in dups.items() if len(v) > 1} for coin in coins: - symbol, _ = symbol_from_shortcut(coin["shortcut"]) + symbol, _ = symbol_from_shortcut(coin["shortcut"].lower()) dup_symbols[symbol].append(coin) dup_keys[coin["key"]].append(coin)