diff --git a/templates/boilerplate/config/contracts.js b/templates/boilerplate/config/contracts.js index f768afdc6..086d2f0b4 100644 --- a/templates/boilerplate/config/contracts.js +++ b/templates/boilerplate/config/contracts.js @@ -10,6 +10,7 @@ module.exports = { // order of connections the dapp should connect to dappConnection: [ "$WEB3", // uses pre existing web3 object if available (e.g in Mist) + "ws://localhost:8546", "http://localhost:8545" ], gas: "auto", diff --git a/templates/demo/config/contracts.js b/templates/demo/config/contracts.js index 1d8c5b237..6bfd7d3a4 100644 --- a/templates/demo/config/contracts.js +++ b/templates/demo/config/contracts.js @@ -10,6 +10,7 @@ module.exports = { // order of connections the dapp should connect to dappConnection: [ "$WEB3", // uses pre existing web3 object if available (e.g in Mist) + "ws://localhost:8546", "http://localhost:8545" ], gas: "auto", diff --git a/templates/simple/contracts.js b/templates/simple/contracts.js index f768afdc6..086d2f0b4 100644 --- a/templates/simple/contracts.js +++ b/templates/simple/contracts.js @@ -10,6 +10,7 @@ module.exports = { // order of connections the dapp should connect to dappConnection: [ "$WEB3", // uses pre existing web3 object if available (e.g in Mist) + "ws://localhost:8546", "http://localhost:8545" ], gas: "auto",