-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
31 lines (28 loc) · 850 Bytes
/
hardhat.config.js
File metadata and controls
31 lines (28 loc) · 850 Bytes
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
require("@nomiclabs/hardhat-waffle");
require("dotenv").config();
require("@nomiclabs/hardhat-etherscan");
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 = {
solidity: "0.8.1",
networks: {
ropsten: {
url: `https://ropsten.infura.io/v3/${process.env.INFURA_KEY}`,
accounts: [process.env.DEPLOYER_KEY],
},
rinkeby: {
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_KEY}`,
accounts: [process.env.DEPLOYER_KEY],
},
},
etherscan: {
apiKey: {
ropsten: process.env.ETHERSCAN_KEY,
rinkeby: process.env.ETHERSCAN_KEY,
},
},
};