Skip to content

Commit

Permalink
Add custom hardhat-verify config for Arbitrum Sepolia
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
michalinacienciala committed Jan 3, 2024
1 parent dd399fb commit a19169c
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions cross-chain/arbitrum/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
// },
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit a19169c

Please sign in to comment.