Skip to content

Instantly share code, notes, and snippets.

@hm0429
Created March 12, 2018 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hm0429/c3b916ae403bfdf39d4f0043425b847d to your computer and use it in GitHub Desktop.
Save hm0429/c3b916ae403bfdf39d4f0043425b847d to your computer and use it in GitHub Desktop.
var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonic = process.env.MNEMONIC;
var infuraAccessToken = process.env.INFURA_ACCESS_TOKEN;
module.exports = {
networks: {
// テストネット用デプロイ設定
ropsten: {
provider: function() {
return new HDWalletProvider(
mnemonic,
"https://ropsten.infura.io/" + infuraAccessToken
);
},
network_id: 3,
gas: 4000000,
gasPrice: 10000000000 // 10 Gwei
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment