on master help sign in
Use insecure localhost ws again
64dbee8Fang
src/bridge/Bridge.js+1−1
@@ -25,7 +25,7 @@ const initWeb3 = (networkType) => {
25 const contracts = azimuth.initContracts(web3, CONTRACT_ADDRESSES.MAINNET)
25 const contracts = azimuth.initContracts(web3, CONTRACT_ADDRESSES.MAINNET)
26 return {web3: web3, contracts: contracts}
26 return {web3: web3, contracts: contracts}
27 } else if (networkType === NETWORK_NAMES.LOCAL) {
27 } else if (networkType === NETWORK_NAMES.LOCAL) {
28− const endpoint = 'wss://localhost:8545'
28+ const endpoint = 'ws://localhost:8545'
29 const provider = new Web3.providers.WebsocketProvider(endpoint)
29 const provider = new Web3.providers.WebsocketProvider(endpoint)
30 const web3 = new Web3(provider)
30 const web3 = new Web3(provider)
31 const contracts = azimuth.initContracts(web3, CONTRACT_ADDRESSES.DEV)
31 const contracts = azimuth.initContracts(web3, CONTRACT_ADDRESSES.DEV)