Skip to content

Commit

Permalink
use ankr api for fetching ethereum tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Aug 19, 2024
1 parent c8c4e69 commit 5c14ff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/helper/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ async function ankrGetTokens(address, { onlyWhitelisted = true, skipCacheRead =
jsonrpc: '2.0',
method: 'ankr_getAccountBalance',
params: {
blockchain: Object.values(ankrChainMapping).filter(i => i !== 'eth'),
blockchain: Object.values(ankrChainMapping),
onlyWhitelisted,
nativeFirst: true,
skipSyncCheck: true,
Expand All @@ -117,7 +117,7 @@ async function ankrGetTokens(address, { onlyWhitelisted = true, skipCacheRead =
for (const [chain, values] of Object.entries(tokens)) {
tokens[chain] = getUniqueAddresses(values)
}
tokens.eth = await getETHTokens(address, onlyWhitelisted)
// tokens.eth = await getETHTokens(address, onlyWhitelisted)

await setCache(project, key, tokenCache)
return tokens
Expand Down

0 comments on commit 5c14ff5

Please sign in to comment.