Skip to content

Commit

Permalink
Fix issue with ens rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Aug 30, 2024
1 parent b41cf5a commit 0e123f8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pages/api/accounts-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,12 @@ async function fetchAccountsData(addresses: string[], method: 'POST' | 'GET') {
)
}

const domains = await getEnsNames(evmAddressesHuman)
let domains: Record<string, string[]> = {}
try {
domains = await getEnsNames(evmAddressesHuman)
} catch (err) {
console.error('Error fetching ENS names', err)
}

const needToFetchIdsPromise = addresses.map(async (address, i) => {
const evmAddress = evmAddressesHuman[i]
Expand Down

0 comments on commit 0e123f8

Please sign in to comment.