Skip to content

Commit

Permalink
Update deployment via Infura
Browse files Browse the repository at this point in the history
  • Loading branch information
morrigan committed Apr 2, 2019
1 parent 9dc9e2d commit f29e652
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ ETHEREUM_NETWORK_EXPOSED_PORT=8545

#deployment
ROPSTEN_MNEMONIC=
INFURA_ACCESS_TOKEN=
INFURA_PROJECT_ID=
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"runjs": "^4.3.2",
"sinon": "^5.0.4",
"solhint": "^1.2.1",
"truffle-hdwallet-provider": "0.0.5"
"truffle-hdwallet-provider": "^1.0.6"
},
"babel": {
"presets": [
Expand Down
4 changes: 2 additions & 2 deletions truffle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Allows us to use ES6 in our migrations and tests.
require('babel-register');
require('dotenv').config();
let HDWalletProvider = require('truffle-hdwallet-provider');
const HDWalletProvider = require('truffle-hdwallet-provider');

module.exports = {
networks: {
Expand All @@ -14,7 +14,7 @@ module.exports = {
provider: function() {
return new HDWalletProvider(
process.env.ROPSTEN_MNEMONIC,
`https://ropsten.infura.io/${process.env.INFURA_ACCESS_TOKEN}`,
`https://ropsten.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
0
);
},
Expand Down

0 comments on commit f29e652

Please sign in to comment.