-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
41 lines (37 loc) · 1010 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
/** @type import('hardhat/config').HardhatUserConfig */
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config({ path: './.env.local' });
task("accounts", "Print the list of accounts", async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(account.address);
}
})
const privateKey = process.env.NEXT_PUBLIC_PRIVATE_KEY
module.exports = {
solidity: "0.8.9",
defaultNetwork: "sepolia",
networks: {
// hardhat: {},
// ganache: {
// url: process.env.NEXT_PUBLIC_RPC_URL,
// account: [privateKey]
// },
rinkeby: {
url: process.env.NEXT_PUBLIC_RPC_URL,
accounts: [privateKey]
},
goerli: {
url: process.env.NEXT_PUBLIC_RPC_URL,
accounts: [privateKey],
},
polygon: {
url: process.env.NEXT_PUBLIC_RPC_URL,
accounts: [privateKey],
},
sepolia: {
url: process.env.NEXT_PUBLIC_RPC_URL,
accounts: [privateKey],
}
}
};