Skip to content

Commit

Permalink
fix: don't fetch withdrawals for teleport pairs (#1704)
Browse files Browse the repository at this point in the history
  • Loading branch information
brtkx authored Jun 12, 2024
1 parent 58b5b8f commit 4734c15
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/arb-token-bridge-ui/src/hooks/useTransactionHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,16 @@ const useTransactionHistoryWithoutStatuses = (address: Address | undefined) => {
isConnectedToParentChain
})
try {
if (
isTeleport({
sourceChainId: chainPair.parentChainId,
destinationChainId: chainPair.childChainId
})
) {
// Teleport fetcher will go here.
return []
}

return await fetcherFn({
sender: includeSentTxs ? address : undefined,
receiver: includeReceivedTxs ? address : undefined,
Expand Down

0 comments on commit 4734c15

Please sign in to comment.