Created
February 5, 2022 07:00
-
-
Save mhmdhasan/20835bf92e20c0fa4c126f60171655cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const HDWalletProvider = require('@truffle/hdwallet-provider'); | |
const mnemonic = “Enter you 14 words wallet passphrase”; | |
module.exports = { | |
// See <http://truffleframework.com/docs/advanced/configuration> | |
// to customize your Truffle configuration! | |
contracts_build_directory: path.join(__dirname, 'client/src/contracts'), | |
networks: { | |
development: { | |
host: '127.0.0.1', | |
port: 7545, | |
network_id: '*', //match any network id | |
}, | |
matic: { | |
provider: () => new HDWalletProvider(mnemonic, `https://rpc-mumbai.maticvigil.com`), | |
network_id: 80001, | |
confirmations: 2, | |
timeoutBlocks: 200, | |
skipDryRun: true | |
}, | |
}, | |
// Configure your compilers | |
compilers: { | |
solc: { | |
optimizer: { | |
enabled: true, | |
runs: 200, | |
}, | |
version: '^0.8.0', | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment