fix: add new images and fix integration tests (#3679)

This commit is contained in:
David Adegoke
2026-10-05 17:41:25 +02:00
committed by GitHub
parent 1f1ba779f8
commit ad93901ae5
17 changed files with 216 additions and 34 deletions
@@ -25,6 +25,9 @@ bool isTrustedStablecoin(CryptoCurrency c) =>
_stablecoinSymbols.contains(c.title.toUpperCase())) &&
!c.isPotentialScam;
bool hasBuiltInStablecoinSymbol(CryptoCurrency c) =>
_stablecoinSymbols.contains(c.title.toUpperCase());
const _kEvmDefaultTokenNatives = <CryptoCurrency>[
CryptoCurrency.baseEth,
CryptoCurrency.arbEth,
@@ -322,9 +322,13 @@ class _MultiNetworkPickerBodyState extends State<_MultiNetworkPickerBody> {
final visibleRecents = recents.where(items.contains).toList(growable: false);
final isSingleNetwork = items.map(cryptoCurrencyOrTokenToWalletType).toSet().length == 1;
final seenStablecoinTitles = <String>{};
final stablecoins = items
.where((c) => isTrustedStablecoin(c) && seenStablecoinTitles.add(c.title.toUpperCase()))
.where((c) =>
isTrustedStablecoin(c) &&
(isSingleNetwork || hasBuiltInStablecoinSymbol(c)) &&
seenStablecoinTitles.add(c.title.toUpperCase()))
.toList(growable: false);
final cryptocurrencies = items.where(natives.contains).toList(growable: false);
+1 -1
View File
@@ -13,7 +13,7 @@ String getQrImage(WalletType type) {
case WalletType.bsc:
return 'assets/images/bnb_chain_QR.svg';
case WalletType.robinhood:
return "assets/images/eth_chain_qr.svg";
return "assets/images/robinhood_chain_QR.svg";
case WalletType.solana:
return 'assets/images/sol_chain_qr.svg';
case WalletType.tron: