Skip to content

Commit

Permalink
ankr cache: retain prev tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed Aug 21, 2024
1 parent fdcb1ee commit f9bf678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/helper/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ async function ankrGetTokens(address, { onlyWhitelisted = true, skipCacheRead =
id: 42
}
};
const tokens = {}
const tokens = cache.tokens ?? {}
const { data: { result: { assets } } } = await axios.request(options)
const tokenCache = { timestamp: timeNow, tokens, }
for (const asset of assets) {
Expand Down

0 comments on commit f9bf678

Please sign in to comment.