-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
35 lines (32 loc) · 898 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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
const fs = require("fs");
// const infuraId = fs.readFileSync(".infuraid").toString().trim() || "";
// eslint-disable-next-line no-undef
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: 1337,
},
goerli: {
url: "https://omniscient-little-road.ethereum-goerli.discover.quiknode.pro/3f688bd9c15114d9315dee06b3bc32cbdc0fec13/",
accounts: ["963a3031f2de5fa2ffad6c4e167f8ee3ea8ffdce82b496266a328ff9c8cd53e9"],
},
},
solidity: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
};