Skip to content

Commit 7f0e8ab

Browse files
authored
fix: opt sepolia url (#1589)
1 parent 6883165 commit 7f0e8ab

File tree

3 files changed

+31
-22
lines changed

3 files changed

+31
-22
lines changed

.changeset/quiet-cups-film.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphprotocol/graph-cli': patch
3+
---
4+
5+
fix optimism sepolia url

packages/cli/src/command-helpers/abi.ts

+4
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ const getEtherscanLikeAPIUrl = (network: string) => {
221221
return `https://api-sepolia.etherscan.io/api`;
222222
case 'scroll-sepolia':
223223
return `https://api-sepolia.scrollscan.dev/api`;
224+
case 'optimism-sepolia':
225+
return `https://sepolia-optimism.etherscan.io/api`;
224226
case 'scroll':
225227
return `https://blockscout.scroll.io/api`;
226228
case 'linea':
@@ -317,6 +319,8 @@ const getPublicRPCEndpoint = (network: string) => {
317319
return 'https://linea-goerli.public.blastapi.io';
318320
case 'blast-testnet':
319321
return 'https://sepolia.blast.io';
322+
case 'optimism-sepolia':
323+
return 'https://sepolia.optimism.io';
320324
default:
321325
throw new Error(`Unknown network: ${network}`);
322326
}

pnpm-lock.yaml

+22-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)