-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
34 lines (33 loc) · 869 Bytes
/
hardhat.config.js
File metadata and controls
34 lines (33 loc) · 869 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
32
33
34
// require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-ethers");
// require("@nomicfoundation/hardhat-chai-matchers"); c
// const projectId = 'sfTjDD035Yha6wjbzWH3yaikoGA5s-A8';
const fs = require('fs')
const keyData = fs.readFileSync('./p-key.txt', {
encoding:'utf8', flag:'r'
});
// const ALCHEMY_API_URL = process.env.ALCHEMY_API_URL;
// const RINKEBY_P_KEY = process.env.RINKEBY_P_KEY;
module.exports = {
defaultNetwork: 'hardhat',
networks:{
//connecting hardhat
hardhat:{
chainId: 1337 //config standard
},
//connecting rinkeby testnet from alchemy
rinkeby:{
url:'https://rinkeby.infura.io/v3/7156e0dc3e0f4083b0ba8132ce71e6e6',
accounts:[keyData]
}
},
solidity:{
version : "0.8.4",
setting: {
optimizer : {
enabled : true,
runs: 200
}
}
},
};