Skip to content

Commit 23cc5ef

Browse files
Update packages/mask/src/extension/background-script/EthereumServices/tokenList.ts
Co-authored-by: guanbinrui <[email protected]>
1 parent 0d808c4 commit 23cc5ef

File tree

1 file changed

+1
-1
lines changed
  • packages/mask/src/extension/background-script/EthereumServices

1 file changed

+1
-1
lines changed

packages/mask/src/extension/background-script/EthereumServices/tokenList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ async function fetchERC20TokensFromTokenList(urls: string[], chainId = ChainId.M
102102
}
103103

104104
const tokens = await fetchCommonERC20TokensFromTokenList(x, chainId)
105-
return { tokens, weight: x.includes('https://tokens.r2d2.to') ? 1 : 0 }
105+
return { tokens, weight: x.startsWith('https://tokens.r2d2.to') ? 1 : 0 }
106106
})
107107

108108
const allListResponse = await Promise.allSettled(allRequest)

0 commit comments

Comments
 (0)