-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
35 lines (33 loc) · 1.01 KB
/
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");
const { INFURA_API_KEY, SEPOLIA_PRIVATE_KEY } = require("./config");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version:"0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 200, // Same as the value used in Remix
},
}
},
networks: {
ganache: {
url: "http://127.0.0.1:7545",
chainId: 1337, // Your Ganache Chain ID
accounts: { // (Optional) Add Ganache account private keys if needed
mnemonic: "fruit insect love learn tower opera divide link intact always garment foam",
}
},
sepolia: {
url: `https://sepolia.infura.io/v3/${INFURA_API_KEY}`,
chainId: 11155111,
accounts: [`0x${SEPOLIA_PRIVATE_KEY}`], // Ensure 0x is added here
},
et: {
url: `https://node.ghostnet.etherlink.com`,
chainId: 128123,
accounts: [`0x${SEPOLIA_PRIVATE_KEY}`], // Ensure 0x is added here
},
}
};