Created
December 23, 2019 06:36
-
-
Save ryanpedersen42/ccfe11bdfca6c087ba074dc361b5a8b2 to your computer and use it in GitHub Desktop.
truffle config
This file contains hidden or 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
| require('babel-register'); | |
| require('babel-polyfill'); | |
| const HDWalletProvider = require("@truffle/hdwallet-provider"); | |
| const mnemonic='<your mnemonic>'; | |
| module.exports = { | |
| networks: { | |
| ropsten: { | |
| provider: function() { | |
| return new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/v3/<your infura key>') | |
| }, | |
| network_id: 3 | |
| }, | |
| development: { | |
| host: "127.0.0.1", | |
| port: 7545, //for ganache | |
| network_id: "*" // Match any network id | |
| }, | |
| }, | |
| contracts_directory: './src/contracts/', | |
| contracts_build_directory: './src/abis/', | |
| compilers: { | |
| solc: { | |
| optimizer: { | |
| enabled: true, | |
| runs: 200 | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment