mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
Incorrect explorer as error (#16177)
This commit is contained in:
parent
e7fc2bcadd
commit
ad589e2004
|
@ -403,12 +403,8 @@ function isAssetInfoOK(chain: string, isCoin: boolean, address: string, errors:
|
|||
let matchCount = 0;
|
||||
explorersAlt.forEach(exp => { if (exp.toLowerCase() == explorerActualLower) { ++matchCount; }});
|
||||
if (matchCount == 0) {
|
||||
// none matches, this is warning/error
|
||||
if (chain.toLowerCase() == CoinType.name(CoinType.ethereum) || chain.toLowerCase() == CoinType.name(CoinType.smartchain)) {
|
||||
errors.push(`Incorrect explorer, ${explorerActual} instead of ${explorerExpected} (${explorersAlt.join(', ')})`);
|
||||
} else {
|
||||
warnings.push(`Unexpected explorer, ${explorerActual} instead of ${explorerExpected} (${explorersAlt.join(', ')})`);
|
||||
}
|
||||
// none matches, this is error
|
||||
errors.push(`Incorrect explorer, ${explorerActual} instead of ${explorerExpected} (${explorersAlt.join(', ')})`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user