From 2a1508c10d2543d121f96bd7bcd3def7c0e2687b Mon Sep 17 00:00:00 2001 From: Jay Welsh Date: Fri, 8 Dec 2023 13:29:43 +0200 Subject: [PATCH] fix(constants): use remote api endpoint --- src/utils/constants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 063c6c9..40f5e5b 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -1,6 +1,6 @@ export const STAKING_CONTRACT = '0x00000000219ab540356cBB839Cbe05303d7705Fa' -export const API_ENDPOINT = "http://localhost:8420"; +// export const API_ENDPOINT = "http://localhost:8420"; export const ENV_TO_API_ENDPOINT : {[key: string]: string} = { "local": "http://localhost:8420", @@ -8,7 +8,7 @@ export const ENV_TO_API_ENDPOINT : {[key: string]: string} = { "prod": "https://dappapi.propy.com/", } -// export const API_ENDPOINT = (process?.env?.REACT_APP_ENV && ENV_TO_API_ENDPOINT[process.env.REACT_APP_ENV]) ? ENV_TO_API_ENDPOINT[process.env.REACT_APP_ENV] : 'https://dev.dappapi.propy.com/' ; +export const API_ENDPOINT = (process?.env?.REACT_APP_ENV && ENV_TO_API_ENDPOINT[process.env.REACT_APP_ENV]) ? ENV_TO_API_ENDPOINT[process.env.REACT_APP_ENV] : 'https://dev.dappapi.propy.com/' ; export const PRO_TOKEN_ADDRESS = "0x226bb599a12C826476e3A771454697EA52E9E220"; export const PRO_TOKEN_DECIMALS = 8;