Skip to content

Commit d9fff61

Browse files
authored
chore(contracts): add custom chain config for etherscan api (#823)
1 parent 0f6505c commit d9fff61

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

packages/contracts/hardhat.config.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,17 @@ const hardhatConfig: HardhatUserConfig = {
3939
target: "ethers-v6"
4040
},
4141
etherscan: {
42-
apiKey: process.env.ETHERSCAN_API_KEY
42+
apiKey: process.env.ETHERSCAN_API_KEY,
43+
customChains: [
44+
{
45+
network: "optimism-sepolia",
46+
chainId: 11155420,
47+
urls: {
48+
apiURL: "https://api-sepolia-optimistic.etherscan.io/api",
49+
browserURL: "https://sepolia-optimistic.etherscan.io"
50+
}
51+
}
52+
]
4353
},
4454
sourcify: {
4555
enabled: true

0 commit comments

Comments
 (0)