Skip to content

Commit aa5539e

Browse files
Problem: Failed to load networks from internal folder (#15)
1 parent 3bd4194 commit aa5539e

4 files changed

Lines changed: 2 additions & 8 deletions

File tree

File renamed without changes.
File renamed without changes.

src/stores/useDashboard.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -347,14 +347,12 @@ export const useDashboard = defineStore('dashboard', {
347347
},
348348
async loadingFromLocal() {
349349
let testnets: Record<string, LocalConfig> = {};
350-
let internals: Record<string, LocalConfig> = {};
351350
if (window.location.hostname.search('.int.') > -1 || window.location.hostname.search('localhost') > -1) {
352351
testnets = import.meta.glob('../../chains/testnet/*.json', { eager: true });
353-
internals = import.meta.glob('../../chains/internal/*.json', { eager: true });
354352
}
355353
const mainnets: Record<string, LocalConfig> = import.meta.glob('../../chains/mainnet/*.json', { eager: true });
356354

357-
const source = { ...mainnets, ...testnets, ...internals };
355+
const source = { ...mainnets, ...testnets };
358356

359357
Object.values<LocalConfig>(source).forEach((x: LocalConfig) => {
360358
this.chains[x.chain_name] = fromLocal(x);
@@ -366,7 +364,6 @@ export const useDashboard = defineStore('dashboard', {
366364
async loadLocalConfig(network: NetworkType) {
367365
const config: Record<string, ChainConfig> = {};
368366
let testnets: Record<string, LocalConfig> = {};
369-
let internals: Record<string, LocalConfig> = {};
370367
if (
371368
window.location.hostname.search('.int.') > -1 ||
372369
window.location.hostname.search('localhost') > -1 ||
@@ -376,13 +373,10 @@ export const useDashboard = defineStore('dashboard', {
376373
testnets = import.meta.glob('../../chains/testnet/*.json', {
377374
eager: true,
378375
});
379-
internals = import.meta.glob('../../chains/internal/*.json', {
380-
eager: true,
381-
});
382376
}
383377
const mainnets: Record<string, LocalConfig> = import.meta.glob('../../chains/mainnet/*.json', { eager: true });
384378

385-
const source = { ...mainnets, ...testnets, ...internals };
379+
const source = { ...mainnets, ...testnets };
386380

387381
Object.values<LocalConfig>(source).forEach((x: LocalConfig) => {
388382
config[x.chain_name] = fromLocal(x);

0 commit comments

Comments
 (0)