From a19169c947a37493b4a72a62a4664579e847a150 Mon Sep 17 00:00:00 2001 From: Michalina Date: Wed, 3 Jan 2024 11:25:09 +0100 Subject: [PATCH] Add custom `hardhat-verify` config for Arbitrum Sepolia The Arbitrum Sepolia testnet is not on the list of chains supported by the `hardhat-verify` plugin (https://github.com/NomicFoundation/hardhat/blob/main/packages/hardhat-verify/src/internal/chain-config.ts). We're adding a custom configuration that will make the contracts verification possible on that testnet (following the https://hardhat.org/hardhat-runner/plugins/nomicfoundation-hardhat-verify#adding-support-for-other-networks docs). --- cross-chain/arbitrum/hardhat.config.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/cross-chain/arbitrum/hardhat.config.ts b/cross-chain/arbitrum/hardhat.config.ts index 5fe25006a..8afa7fe77 100644 --- a/cross-chain/arbitrum/hardhat.config.ts +++ b/cross-chain/arbitrum/hardhat.config.ts @@ -81,8 +81,7 @@ const config: HardhatUserConfig = { accounts: process.env.L2_ACCOUNTS_PRIVATE_KEYS ? process.env.L2_ACCOUNTS_PRIVATE_KEYS.split(",") : undefined, - // TODO: uncomment below line once https://github.com/NomicFoundation/hardhat/issues/4582 is resolved - // tags: ["arbiscan"], + tags: ["arbiscan"], // companionNetworks: { // l1: "sepolia", // }, @@ -130,6 +129,16 @@ const config: HardhatUserConfig = { arbitrumSepolia: process.env.ARBISCAN_API_KEY, arbitrumOne: process.env.ARBISCAN_API_KEY, }, + customChains: [ + { + network: "arbitrumSepolia", + chainId: 421614, + urls: { + apiURL: "https://api-sepolia.arbiscan.io/api", + browserURL: "https://sepolia.arbiscan.io/", + }, + }, + ], }, namedAccounts: {