-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
33 lines (31 loc) · 919 Bytes
/
Copy pathhardhat.config.js
File metadata and controls
33 lines (31 loc) · 919 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
require("dotenv").config();
require("@nomicfoundation/hardhat-toolbox");
const { SEPOLIA_RPC_URL, DEPLOYER_PRIVATE_KEY, ETHERSCAN_API_KEY } = process.env;
module.exports = {
solidity: {
compilers: [
{
version: "0.8.28",
settings: {
optimizer: { enabled: false, runs: 200 }, // اگر قبلا optimizer=true بوده، به true تغییر بده
metadata: { bytecodeHash: "none" } // حالا اول "none" امتحان کن؛ اگر نشد "ipfs" رو تست کن
}
}
]
},
networks: {
sepolia: {
url: SEPOLIA_RPC_URL || "https://rpc.sepolia.org",
chainId: 11155111,
accounts: DEPLOYER_PRIVATE_KEY ? [DEPLOYER_PRIVATE_KEY] : [],
},
},
etherscan: {
apiKey: {
sepolia: ETHERSCAN_API_KEY || "",
},
},
sourcify: {
enabled: false, // میتونی true هم بذاری ولی الان مهم نیست
},
};