generated from NomicFoundation/hardhat-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
42 lines (40 loc) · 929 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
36
37
38
39
40
41
42
require("@nomiclabs/hardhat-waffle");
// The next line is part of the sample project, you don't need it in your
// project. It imports a Hardhat task definition, that can be used for
// testing the frontend.
require("./tasks/faucet");
// If you are using MetaMask, be sure to change the chainId to 1337
module.exports = {
solidity: {
compilers: [
{
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.6.7",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 31337,
},
mumbai: {
url: "https://polygon-mumbai.g.alchemy.com/v2/7mEHBbO3oXox13fx4MMoO_eJ7IJxC3GX",
accounts: [process.env.privateKey]
}
}
};