mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-18 12:28:09 +00:00
fix(common): improve testnet detection for ethereum
This commit is contained in:
parent
1712794947
commit
c2d8623039
@ -738,7 +738,7 @@ def deduplicate_erc20(buckets: CoinBuckets, networks: Coins) -> None:
|
||||
as deprecated, with a deprecation pointing to the "main" token.
|
||||
"""
|
||||
|
||||
testnet_networks = {n["chain"] for n in networks if "Testnet" in n["name"]}
|
||||
testnet_networks = {n["chain"] for n in networks if n["slip44"] == 1}
|
||||
|
||||
def clear_bucket(bucket: Coins) -> None:
|
||||
# allow all coins, except those that are explicitly marked through overrides
|
||||
|
Loading…
Reference in New Issue
Block a user