-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
35 lines (34 loc) · 1006 Bytes
/
hardhat.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/** @type import('hardhat/config').HardhatUserConfig */
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-ethers");
require("dotenv").config();
module.exports = {
solidity: {
version: "0.8.18",
settings: {
optimizer: {
enabled: true,
runs: 300,
},
},
},
networks: {
// goerli: {
// url: process.env.GOERLI_URL || "https://rpc.ankr.com/eth_goerli",
// accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
// },
mumbai: {
url: process.env.MUMBAI_URL || "https://rpc.ankr.com/polygon_mumbai",
chainId: 80001,
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
},
// polygon: {
// url: process.env.POLYGON_URL || "",
// chainId: 137,
// accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
// },
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY || "",
},
};