Skip to content

Instantly share code, notes, and snippets.

@mhmdhasan
Created February 5, 2022 07:00
Show Gist options
  • Save mhmdhasan/20835bf92e20c0fa4c126f60171655cf to your computer and use it in GitHub Desktop.
Save mhmdhasan/20835bf92e20c0fa4c126f60171655cf to your computer and use it in GitHub Desktop.
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