fix(common): allow duplicate symbol for Ethereum testnets

[no changelog]
pull/2853/head
Martin Milata 1 year ago
parent 8486aa4ed4
commit 45077b3c3c

@ -329,10 +329,11 @@ def check_dups(buckets: CoinBuckets, print_at_level: int = logging.WARNING) -> b
and not coin_info.is_token(coin)
] # we do not count override-marked coins as duplicates here
cleared = not any(coin.get("duplicate") for coin in bucket)
eth_testnet = symbol == "teth"
# string generation
dup_str = ", ".join(coin_str(coin) for coin in bucket)
if len(nontokens) > 1:
if len(nontokens) > 1 and not eth_testnet:
# Two or more colliding nontokens. This is always fatal.
# XXX consider allowing two nontokens as long as only one is supported?
level = logging.ERROR

Loading…
Cancel
Save