-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
34 lines (31 loc) · 814 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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
const fs = require('fs');
// const infuraId = fs.readFileSync(".infuraid").toString().trim() || "";
task("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
});
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 31337
},
goerli: {
url: "https://eth-goerli.g.alchemy.com/v2/MB3KJ5Hw7Ow4lOHm1dTRvKLg4zc1dTEd",
accounts: [ "144db193a0ee4d23100612299fdfc986f7ad5232792b973d510136e19083dfc1" ]
}
},
solidity: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
};