Skip to content

Commit

Permalink
fix mantle etherscan error
Browse files Browse the repository at this point in the history
  • Loading branch information
vrtnd committed Jul 26, 2024
1 parent 0c355c7 commit 9def4c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/helpers/etherscan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export const getTxsBlockRangeEtherscan = async (
const endpoint = endpoints[chain];
const apiKey = apiKeys[chain];
let res;
if (!endpoint) {
console.error(`WARNING: No Etherscan endpoint found for chain ${chain}.`);
return [];
}
if (!apiKey) {
res = (
await retry(
Expand Down

0 comments on commit 9def4c7

Please sign in to comment.