Skip to content
Permalink
Browse files

[DDW-692] Fix network handling

  • Loading branch information...
nikolaglumac committed Jun 12, 2019
1 parent b89727f commit 9f736304c8ef29cccf43c717afaf5977dfd63ff8
@@ -3,8 +3,8 @@ import type { CardanoExplorerResponse } from '../types';
import { externalRequest } from '../../utils/externalRequest';
import { getNetworkExplorerUri } from '../../../utils/network';

const { isStaging, isTestnet, NETWORK } = global.environment;
const hostname = getNetworkExplorerUri(NETWORK);
const { isStaging, isTestnet, network } = global.environment;
const hostname = getNetworkExplorerUri(network);
const protocol = isStaging || isTestnet ? 'http' : 'https';

export const getCurrentEpoch = (): Promise<CardanoExplorerResponse> =>
@@ -3,8 +3,8 @@ import type { DaedalusLatestVersionResponse } from '../types';
import { externalRequest } from '../../utils/externalRequest';
import { getLatestVersionInfoUrl } from '../../../utils/network';

const { isStaging, isTestnet, NETWORK } = global.environment;
const hostname = getLatestVersionInfoUrl(NETWORK);
const { isStaging, isTestnet, network } = global.environment;
const hostname = getLatestVersionInfoUrl(network);
const path = isStaging || isTestnet ? '' : '/update.cardano-mainnet.iohk.io';

export const getLatestAppVersion = (): Promise<DaedalusLatestVersionResponse> =>

0 comments on commit 9f73630

Please sign in to comment.
You can’t perform that action at this time.