mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 04:18:10 +00:00
fix(common): allow duplicate symbol for Ethereum testnets
[no changelog]
This commit is contained in:
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)
|
and not coin_info.is_token(coin)
|
||||||
] # we do not count override-marked coins as duplicates here
|
] # we do not count override-marked coins as duplicates here
|
||||||
cleared = not any(coin.get("duplicate") for coin in bucket)
|
cleared = not any(coin.get("duplicate") for coin in bucket)
|
||||||
|
eth_testnet = symbol == "teth"
|
||||||
|
|
||||||
# string generation
|
# string generation
|
||||||
dup_str = ", ".join(coin_str(coin) for coin in bucket)
|
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.
|
# Two or more colliding nontokens. This is always fatal.
|
||||||
# XXX consider allowing two nontokens as long as only one is supported?
|
# XXX consider allowing two nontokens as long as only one is supported?
|
||||||
level = logging.ERROR
|
level = logging.ERROR
|
||||||
|
Loading…
Reference in New Issue
Block a user