|
|
@ -141,10 +141,9 @@ const loadJSON = (): AsyncAction => async (dispatch: Dispatch): Promise<void> =>
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const config: Config = await httpRequest(AppConfigJSON, 'json');
|
|
|
|
const config: Config = await httpRequest(AppConfigJSON, 'json');
|
|
|
|
|
|
|
|
|
|
|
|
// remove ropsten testnet from config networks
|
|
|
|
// remove testnets from config networks
|
|
|
|
if (!buildUtils.isDev()) {
|
|
|
|
if (!buildUtils.isDev()) {
|
|
|
|
const index = config.networks.findIndex(c => c.shortcut === 'trop');
|
|
|
|
config.networks = config.networks.filter(n => !n.testnet);
|
|
|
|
delete config.networks[index];
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const ERC20Abi = await httpRequest(Erc20AbiJSON, 'json');
|
|
|
|
const ERC20Abi = await httpRequest(Erc20AbiJSON, 'json');
|
|
|
|