Skip to content

Commit

Permalink
remove async
Browse files Browse the repository at this point in the history
  • Loading branch information
spsjvc committed Dec 19, 2024
1 parent bcd2617 commit 3231ceb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/arb-token-bridge-ui/src/util/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ export function getSupportedChainIds({
})
}

export async function isAlchemyChain(chainId: number) {
export function isAlchemyChain(chainId: number) {
const chain = orbitChains[chainId]

if (typeof chain === 'undefined') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export async function fetchWithdrawals({
const queries: Query[] = []

// alchemy as a raas has a global rate limit across their chains, so we have to fetch sequentially and wait in-between requests to work around this
const isAlchemy = await isAlchemyChain(l2ChainID)
const isAlchemy = isAlchemyChain(l2ChainID)
const delayMs = isAlchemy ? 2_000 : 0

const allGateways = [
Expand Down

0 comments on commit 3231ceb

Please sign in to comment.