Skip to content

Commit

Permalink
Update Hardhat config for Base Sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
RCantu92 committed Apr 4, 2024
1 parent 1e06c16 commit 687b09a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,21 @@ module.exports = {
timeout: 300000,
},
etherscan: {
apiKey: argv.etherscan ?? argv.polyscan,
apiKey: {
mainnet: argv.etherscan,
polygon: argv.polyscan,
basesepolia: argv.basescan
},
customChains: [
{
network: "basesepolia",
chainId: 84532,
urls: {
apiURL: "https://api-sepolia.basescan.org/api",
browserURL: "https://sepolia.basescan.org/"
}
}
]
},
defender: {
apiKey: process.env.DEFENDER_API_KEY ?? '',
Expand All @@ -88,7 +102,7 @@ const accountsForNetwork = (name) => [argv[`${name}Mnemonic`] && { mnemonic: arg
Object.assign(
module.exports.networks,
Object.fromEntries(
['mainnet', 'ropsten', 'rinkeby', 'goerli', 'kovan', 'polygon', 'mumbai', 'amoy', 'sepolia', 'local']
['mainnet', 'ropsten', 'rinkeby', 'goerli', 'kovan', 'polygon', 'mumbai', 'amoy', 'sepolia', 'basesepolia', 'local']
.map((name) => [name, { url: argv[`${name}Node`], accounts: accountsForNetwork(name), gasPrice: argv[`${name}GasPrice`] || 'auto' }])
.filter(([, { url }]) => url)
),
Expand Down

0 comments on commit 687b09a

Please sign in to comment.