Skip to content

Commit

Permalink
fix(common): allow duplicate symbol for Ethereum testnets
Browse files Browse the repository at this point in the history
[no changelog]
  • Loading branch information
mmilata committed Feb 28, 2023
1 parent be920d7 commit 9b97206
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/tools/cointool.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,11 @@ def coin_str(coin: Coin) -> str:
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
Expand Down

0 comments on commit 9b97206

Please sign in to comment.