-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
57 lines (51 loc) · 1.17 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// require("@nomicfoundation/hardhat-toolbox");
// /** @type import('hardhat/config').HardhatUserConfig */
// module.exports = {
// solidity: "0.8.17",
// };
/**
* @type import('hardhat/config').HardhatUserConfig
*/
require("dotenv").config();
require("@nomiclabs/hardhat-ethers");
const { API_URL, PRIVATE_KEY } = process.env;
module.exports = {
solidity: "0.8.7",
defaultNetwork: "goerli",
networks: {
hardhat: {},
goerli: {
url: API_URL,
accounts: [`0x${PRIVATE_KEY}`],
},
},
};
// module.exports = {
// defaultNetwork: "goerli",
// networks: {
// hardhat: {
// },
// goerli: {
// url: "https://eth-goerli.g.alchemy.com/v2/-NNAty0yMkF0I4hAEcLxhUquGTJ_ri4x",
// accounts: ["860970b824f70446a25503fe055e584d58d62da9b3604d1a6007c823baf2da7a"]
// }
// },
// solidity: {
// version: "0.8.7",
// settings: {
// optimizer: {
// enabled: true,
// runs: 200
// }
// }
// },
// paths: {
// sources: "./contracts/MyNFT.sol",
// // tests: "./test",
// // cache: "./cache",
// // artifacts: "./artifacts"
// },
// mocha: {
// timeout: 20000
// }
// }