Skip to content

Commit

Permalink
Connect to production service
Browse files Browse the repository at this point in the history
  • Loading branch information
reyraa committed Apr 30, 2020
1 parent cbbf823 commit 2c48555
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/actions/network/lsk.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ import { toast } from 'react-toastify';
import actionTypes from '../../constants/actions';
import { tokenMap } from '../../constants/tokens';
import networks from '../../constants/networks';
import { version as AppVersion } from '../../../package.json';
// import { version as AppVersion } from '../../../package.json';

const isStaging = () => (
localStorage.getItem('useLiskServiceStaging')
|| AppVersion.includes('beta')
|| AppVersion.includes('rc')
? '-staging' : '');
// const isStaging = () => (
// localStorage.getItem('useLiskServiceStaging')
// || AppVersion.includes('beta')
// || AppVersion.includes('rc')
// ? '-staging' : '');

const getServerUrl = (networkConfig) => {
const { nodeUrl } = networkConfig;
if (networkConfig.nethash === Lisk.constants.MAINNET_NETHASH) {
return `https://mainnet-service${isStaging()}.lisk.io`;
return 'https://mainnet-service.lisk.io';
}
if (networkConfig.nethash === Lisk.constants.TESTNET_NETHASH) {
return `https://testnet-service${isStaging()}.lisk.io`;
return 'https://testnet-service.lisk.io';
}
if (/liskdev.net:\d{2,4}$/.test(nodeUrl)) {
return nodeUrl.replace(/:\d{2,4}/, ':9901');
Expand Down

0 comments on commit 2c48555

Please sign in to comment.