forked from rpaskin/hardhat-gitpod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
35 lines (30 loc) · 931 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("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-ethers");
require('dotenv').config();
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);
}
});
// const alchemy_url = "https://eth-sepolia.g.alchemy.com/v2/...";
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.20",
defaultNetwork: "hardhat",
networks: {
hardhat: {
},
// sepolia: {
// url: process.env.ALCHEMY_API_URL,
// accounts: [`0x${process.env.PRIVATE_KEY}`],
// chainId: 11155111,
// },
// mumbai: {
// url: process.env.ALCHEMY_API_URL,
// accounts: [`0x${process.env.PRIVATE_KEY}`],
// // chainId: 80001, // Mumbai Testnet chain ID
// chainId: 80002, // Amoy testnet
// }
}
};