Skip to content

Commit

Permalink
♻️Refactor GetRemoteConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
MattPoblete committed Dec 16, 2024
1 parent b3508e5 commit 7f17084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dapp/src/helpers/getRemoteConfig.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { configFile } from '@/constants/constants';
const isLocal = process.env.NEXT_PUBLIC_IS_LOCAL
const localDeployment = require('../../../contracts/.soroban/deployments.json')
export const getRemoteConfig = async (network: string) => {
if (isLocal === 'false') {
const deployments = await configFile(network)
return deployments
} else if(isLocal === 'true') {
const localDeployment = require(`../../../contracts/.soroban/${network}.contracts.json`)
return localDeployment
}
}

0 comments on commit 7f17084

Please sign in to comment.