Skip to content

Commit 4fecb8c

Browse files
committed
migrate to etherscan v2 api
1 parent 7a7c33f commit 4fecb8c

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

hardhat.config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ module.exports = {
192192
enabled: true
193193
},
194194
etherscan: {
195-
apiKey: {
195+
/*apiKey: {
196196
oasis_saphire_testnet: process.env.ETHERSCAN_API_KEY,
197197
oasis_saphire: process.env.ETHERSCAN_API_KEY,
198198
optimism_sepolia: process.env.ETHERSCAN_API_KEY,
@@ -201,7 +201,9 @@ module.exports = {
201201
mainnet: process.env.ETHERSCAN_API_KEY,
202202
polygon: process.env.ETHERSCAN_API_KEY,
203203
base: process.env.ETHERSCAN_API_KEY,
204-
},
204+
},*/
205+
apiKey: process.env.ETHERSCAN_API_KEY,
206+
//customChains: [],
205207
customChains: [
206208
{
207209
network: "alfajores",
@@ -239,7 +241,7 @@ module.exports = {
239241
network: "optimism_sepolia",
240242
chainId: 11155420,
241243
urls: {
242-
apiURL: "https://api-sepolia-optimistic.etherscan.io/api",
244+
apiURL: "https://api.etherscan.io/v2/api",
243245
browserURL: "https://sepolia-optimism.etherscan.io/",
244246
},
245247
},

package-lock.json

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"test:full:cover": "npx hardhat coverage"
4444
},
4545
"devDependencies": {
46+
"@nomicfoundation/hardhat-verify": "^2.1.1",
4647
"@nomiclabs/hardhat-ethers": "^2.2.3",
47-
"@nomicfoundation/hardhat-verify": "^2.0.9",
4848
"@nomiclabs/hardhat-vyper": "^3.0.5",
4949
"@nomiclabs/hardhat-waffle": "^2.0.6",
5050
"@openzeppelin/contracts": "^4.8.3",

0 commit comments

Comments
 (0)