From c7974421c4416a22a897c3f2b25042ae015cb1b8 Mon Sep 17 00:00:00 2001 From: Matias Poblete <86752543+MattPoblete@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:55:53 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9Remove=20unnecesary=20data=20fetchi?= =?UTF-8?q?ng?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/dapp/src/constants/constants.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/dapp/src/constants/constants.ts b/apps/dapp/src/constants/constants.ts index 3ab664f..4162867 100644 --- a/apps/dapp/src/constants/constants.ts +++ b/apps/dapp/src/constants/constants.ts @@ -3,7 +3,6 @@ const baseURL = 'https://raw.githubusercontent.com/paltalabs/defindex/refs/heads const suffix = '.contracts.json' export const configFile = async (network:string)=>{ if(network != 'testnet' && network != 'mainnet' && network!= 'standalone') throw new Error(`Invalid network: ${network}. It should be testnet, mainnet or standalone`) - if(network === 'standalone') return require(`../../../contracts/.soroban/${network}.contracts.json`) const url = baseURL + network + suffix const data = await axios.get(url) if(data.status === 200) return data.data