Skip to content

Commit

Permalink
🩹Remove unnecesary data fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPoblete committed Dec 16, 2024
1 parent 0daab26 commit c797442
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion apps/dapp/src/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c797442

Please sign in to comment.