File tree Expand file tree Collapse file tree
packages/assets-controllers/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -900,9 +900,9 @@ export class TokenDetectionController extends StaticIntervalPollingController<To
900900 try {
901901 tokenListMap = await this . #tokenListService. fetchTokensByChainId ( chainId ) ;
902902 } catch {
903- // If the token list fetch fails, skip detection rather than throwing .
904- // This matches the pre-existing behaviour where an empty tokensChainsCache
905- // from TokenListController would simply produce no detected tokens .
903+ // These methods return void; there is no token array to return .
904+ // Gracefully exit so the caller is unaffected — the next polling cycle
905+ // will retry the fetch .
906906 return ;
907907 }
908908 const chainCache = this . #applyMusdDefaultToTokensChainsCache( chainId , {
@@ -1006,9 +1006,9 @@ export class TokenDetectionController extends StaticIntervalPollingController<To
10061006 try {
10071007 tokenListMap = await this . #tokenListService. fetchTokensByChainId ( chainId ) ;
10081008 } catch {
1009- // If the token list fetch fails, skip detection rather than throwing .
1010- // This matches the pre-existing behaviour where an empty tokensChainsCache
1011- // from TokenListController would simply produce no detected tokens .
1009+ // These methods return void; there is no token array to return .
1010+ // Gracefully exit so the caller is unaffected — the next polling cycle
1011+ // will retry the fetch .
10121012 return ;
10131013 }
10141014 const chainCache = this . #applyMusdDefaultToTokensChainsCache( chainId , {
You can’t perform that action at this time.
0 commit comments