File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
components/ConnectAccount/connectors Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,21 @@ import { PortisConnector } from '@web3-react/portis-connector'
7
7
import { FortmaticConnector } from './Fortmatic'
8
8
import { NetworkConnector } from './NetworkConnector'
9
9
import { ChainId } from '@uniswap/sdk'
10
+ import { PARA_CONFIG } from '../../../stores/constants' ;
10
11
12
+ const networkId = PARA_CONFIG . networkId ;
11
13
const PORTIS_ID = 'ede221f9-710f-44c9-a429-ed28bbb54376'
12
14
const FORTMATIC_API_KEY = 'pk_live_8001A50CCA35D8CB'
13
15
const FORTMATIC_API_TEST_KEY = 'pk_test_5185BE42CA372148'
14
16
let FORMATIC_KEY = FORTMATIC_API_TEST_KEY
15
17
16
- export const NETWORK_CHAIN_ID : number = process . env . CHAIN_ID ? parseInt ( process . env . CHAIN_ID ) : ChainId . KOVAN
18
+ export const NETWORK_CHAIN_ID : number = networkId ? parseInt ( networkId ) : ChainId . KOVAN
17
19
18
20
if ( NETWORK_CHAIN_ID === ChainId . MAINNET ) {
19
21
FORMATIC_KEY = FORTMATIC_API_KEY
20
22
}
21
23
22
- const NETWORK_URL = process . env . REACT_APP_NETWORK_URL || NETWORK_CHAIN_ID === ChainId . MAINNET
24
+ const NETWORK_URL = NETWORK_CHAIN_ID === ChainId . MAINNET
23
25
? 'https://eth-mainnet.alchemyapi.io/v2/Kd37_uEmJGwU6pYq6jrXaJXXi8u9IoOM'
24
26
: 'https://eth-kovan.alchemyapi.io/v2/Kd37_uEmJGwU6pYq6jrXaJXXi8u9IoOM'
25
27
Original file line number Diff line number Diff line change 6
6
} from '../utils/types' ;
7
7
8
8
export const PARA_CONFIG : ParaDeploys =
9
+ // @ts -ignore
9
10
( ( process . env . CONFIGURATION as unknown ) as ParaDeploys ) ;
10
11
11
12
export const STUBBED_GRAPH_DATA_ACTIONS = {
You can’t perform that action at this time.
0 commit comments