-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtruffle-config.js
More file actions
29 lines (29 loc) · 795 Bytes
/
Copy pathtruffle-config.js
File metadata and controls
29 lines (29 loc) · 795 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
const HDWalletProvider = require("@truffle/hdwallet-provider");
const env = require("dotenv").config({ path: "./.env" });
const mnemonic = process.env.MNEMONIC;
module.exports = {
compilers: {
solc: {
version: "0.8.13",
},
},
networks: {
development: {
host: "127.0.01",
port: 7545,
network_id: "*",
gas: 5500000,
},
matic: {
provider: () =>
new HDWalletProvider(
mnemonic,
"https://speedy-nodes-nyc.moralis.io/6a20f4bfebb920c2ab0fb82b/polygon/mumbai"
),
network_id: 80001,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true,
},
},
};