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'
77import { FortmaticConnector } from './Fortmatic'
88import { NetworkConnector } from './NetworkConnector'
99import { ChainId } from '@uniswap/sdk'
10+ import { PARA_CONFIG } from '../../../stores/constants' ;
1011
12+ const networkId = PARA_CONFIG . networkId ;
1113const PORTIS_ID = 'ede221f9-710f-44c9-a429-ed28bbb54376'
1214const FORTMATIC_API_KEY = 'pk_live_8001A50CCA35D8CB'
1315const FORTMATIC_API_TEST_KEY = 'pk_test_5185BE42CA372148'
1416let FORMATIC_KEY = FORTMATIC_API_TEST_KEY
1517
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
1719
1820if ( NETWORK_CHAIN_ID === ChainId . MAINNET ) {
1921 FORMATIC_KEY = FORTMATIC_API_KEY
2022}
2123
22- const NETWORK_URL = process . env . REACT_APP_NETWORK_URL || NETWORK_CHAIN_ID === ChainId . MAINNET
24+ const NETWORK_URL = NETWORK_CHAIN_ID === ChainId . MAINNET
2325 ? 'https://eth-mainnet.alchemyapi.io/v2/Kd37_uEmJGwU6pYq6jrXaJXXi8u9IoOM'
2426 : 'https://eth-kovan.alchemyapi.io/v2/Kd37_uEmJGwU6pYq6jrXaJXXi8u9IoOM'
2527
Original file line number Diff line number Diff line change 66} from '../utils/types' ;
77
88export const PARA_CONFIG : ParaDeploys =
9+ // @ts -ignore
910 ( ( process . env . CONFIGURATION as unknown ) as ParaDeploys ) ;
1011
1112export const STUBBED_GRAPH_DATA_ACTIONS = {
You can’t perform that action at this time.
0 commit comments