Skip to content

Commit 98c7664

Browse files
TucksonDevgzeoneth
authored andcommitted
fix: verification process (#397)
Co-authored-by: gzeon <hng@offchainlabs.com>
1 parent a82e2dd commit 98c7664

File tree

4 files changed

+12
-25
lines changed

4 files changed

+12
-25
lines changed

.env-sample

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ NODECREATED_LOG_LOOKUP_BATCH_COUNT=100
1111

1212
# to use the 'custom' hardhat network, set the following variables
1313
CUSTOM_RPC_URL="http://127.0.0.1:8545"
14-
CUSTOM_ETHERSCAN_API_KEY=
14+
CUSTOM_PRIVKEY="0x"
15+
ETHERSCAN_API_KEY=
1516
CUSTOM_CHAINID=1337
1617
CUSTOM_ETHERSCAN_API_URL=
1718
CUSTOM_ETHERSCAN_BROWSER_URL=

hardhat.config.ts

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -211,34 +211,20 @@ module.exports = {
211211
},
212212
},
213213
etherscan: {
214-
apiKey: {
215-
mainnet: process.env['ETHERSCAN_API_KEY'],
216-
sepolia: process.env['ETHERSCAN_API_KEY'],
217-
holesky: process.env['ETHERSCAN_API_KEY'],
218-
arbitrumOne: process.env['ARBISCAN_API_KEY'],
219-
nova: process.env['NOVA_ARBISCAN_API_KEY'],
220-
arbSepolia: process.env['ARBISCAN_API_KEY'],
221-
base: process.env['BASESCAN_API_KEY'],
222-
baseSepolia: process.env['BASESCAN_API_KEY'],
223-
custom: process.env['CUSTOM_ETHERSCAN_API_KEY'],
214+
apiKey: process.env['ETHERSCAN_API_KEY'],
215+
sourcify: {
216+
// Doesn't need an API key
217+
enabled: true
224218
},
225219
customChains: [
226220
{
227221
network: 'nova',
228222
chainId: 42170,
229223
urls: {
230-
apiURL: 'https://api-nova.arbiscan.io/api',
224+
apiURL: 'https://api.etherscan.io/v2/api',
231225
browserURL: 'https://nova.arbiscan.io/',
232226
},
233227
},
234-
{
235-
network: 'arbSepolia',
236-
chainId: 421614,
237-
urls: {
238-
apiURL: 'https://api-sepolia.arbiscan.io/api',
239-
browserURL: 'https://sepolia.arbiscan.io/',
240-
},
241-
},
242228
{
243229
network: 'custom',
244230
chainId: process.env['CUSTOM_CHAINID'],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"@arbitrum/sdk": "^3.7.3",
7272
"@ethersproject/providers": "^5.8.0",
7373
"@nomicfoundation/hardhat-chai-matchers": "^1.0.6",
74-
"@nomicfoundation/hardhat-verify": "^2.0.13",
74+
"@nomicfoundation/hardhat-verify": "^2.1.3",
7575
"@nomiclabs/hardhat-ethers": "^2.2.3",
7676
"@typechain/ethers-v5": "^10.2.1",
7777
"@typechain/hardhat": "^6.1.6",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -680,10 +680,10 @@
680680
deep-eql "^4.0.1"
681681
ordinal "^1.0.3"
682682

683-
"@nomicfoundation/hardhat-verify@^2.0.13":
684-
version "2.0.13"
685-
resolved "https://registry.yarnpkg.com/@nomicfoundation/hardhat-verify/-/hardhat-verify-2.0.13.tgz#41691adc32e01dc5cf6b725615f64958fba2100b"
686-
integrity sha512-i57GX1sC0kYGyRVnbQrjjyBTpWTKgrvKC+jH8CMKV6gHp959Upb8lKaZ58WRHIU0espkulTxLnacYeUDirwJ2g==
683+
"@nomicfoundation/hardhat-verify@^2.1.3":
684+
version "2.1.3"
685+
resolved "https://registry.yarnpkg.com/@nomicfoundation/hardhat-verify/-/hardhat-verify-2.1.3.tgz#f61a192a792b39f9978cef1450047deaff3ea052"
686+
integrity sha512-danbGjPp2WBhLkJdQy9/ARM3WQIK+7vwzE0urNem1qZJjh9f54Kf5f1xuQv8DvqewUAkuPxVt/7q4Grz5WjqSg==
687687
dependencies:
688688
"@ethersproject/abi" "^5.1.2"
689689
"@ethersproject/address" "^5.0.2"

0 commit comments

Comments
 (0)