Skip to content

Commit

Permalink
Added config for Ropsten with optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
mhishami committed Jan 27, 2018
1 parent 4eea44c commit aa3eec4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions truffle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@ require('babel-register')({
});
require('babel-polyfill');
var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonic = "";

module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// for more about customizing your Truffle configuration!
networks: {
ropsten: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/<INFURA_Access_Token>")
return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/GBKOU5za2EimK5ewgvvA")
},
gas: 2900000,
// gas: 3712390,
// gasPrice: 40,
network_id: 3
},
development: {
Expand All @@ -29,6 +33,7 @@ module.exports = {
// from - default address to use for any transaction Truffle makes during migrations
// provider - web3 provider instance Truffle should use to talk to the Ethereum network.
// - if specified, host and port are ignored.
}
},
solc: { optimizer: { enabled: true, runs: 200 } }
}
};

0 comments on commit aa3eec4

Please sign in to comment.