Skip to content

Commit

Permalink
chore: adds zkEVM to hardhat config
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianschu committed Oct 8, 2024
1 parent a91bf27 commit 67c9515
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/evm/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ GNOSISSCAN_API_KEY=
POLYGONSCAN_API_KEY=
ARBISCAN_API_KEY=
SNOWTRACE_API_KEY=notrequired
MNEMONIC=
ZKEVM_POLYGONSCAN_API_KEY=
MNEMONIC=
7 changes: 7 additions & 0 deletions packages/evm/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const {
POLYGONSCAN_API_KEY,
ARBISCAN_API_KEY,
SNOWTRACE_API_KEY,
ZKEVM_POLYGONSCAN_API_KEY
} = process.env;

const sharedNetworkConfig: HttpNetworkUserConfig = {};
Expand Down Expand Up @@ -101,6 +102,11 @@ const config: HardhatUserConfig = {
chainId: 43114,
url: "https://rpc.ankr.com/avalanche",
},
zkEVM: {
...sharedNetworkConfig,
chainId: 1101,
url: "https://zkevm-rpc.com",
},
},
etherscan: {
apiKey: {
Expand All @@ -111,6 +117,7 @@ const config: HardhatUserConfig = {
matic: POLYGONSCAN_API_KEY,
arbitrum: ARBISCAN_API_KEY,
avalanche: SNOWTRACE_API_KEY,
zkEVM: ZKEVM_POLYGONSCAN_API_KEY
} as Record<string, string>,
customChains: [
{
Expand Down

0 comments on commit 67c9515

Please sign in to comment.