Skip to content

Commit

Permalink
skip if there is a failure in etherscan api
Browse files Browse the repository at this point in the history
  • Loading branch information
storywithoutend committed Jan 29, 2025
1 parent 4d064b9 commit 0352f8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/SyncProvider/SyncDroppedTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ export const findDroppedTransactions = async (
: []
const accountTransactionHistory = etherscanJson

// Skip if etherscan api fails or returns no history
if (accountTransactionHistory.length === 0) return

for (const searchingTransaction of searchingTransactions) {
// A searchingTransaction likely means the transaction was submitted to a private mempool
// Once we see it it is likely a mined transaction already.
Expand Down

0 comments on commit 0352f8d

Please sign in to comment.