clean testnets

This commit is contained in:
liangping
2023-05-21 20:23:38 +08:00
parent 94ba4b1668
commit 93663c8708
36 changed files with 710 additions and 6 deletions
+3
View File
@@ -298,6 +298,9 @@ export const useDashboard = defineStore('dashboard', {
}
},
async loadingFromLocal() {
if(window.location.hostname.search("testnet") > -1) {
this.networkType = NetworkType.Testnet
}
const source: Record<string, LocalConfig> =
this.networkType === NetworkType.Mainnet
? import.meta.glob('../../chains/mainnet/*.json', { eager: true })