From 72f93341dbe18d296add51bf8eea1671a304f866 Mon Sep 17 00:00:00 2001 From: Tom Robiquet Date: Fri, 9 Feb 2024 10:59:02 +0200 Subject: [PATCH 1/4] adjust coin gecko env variable --- .env.example | 2 +- lib/constants/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index bb01b4c2d..a09841dcb 100644 --- a/.env.example +++ b/.env.example @@ -46,7 +46,7 @@ NEXT_PUBLIC_WEB3AUTH_CLIENT_ID_ZTG=BHyRKGUvkWeDLXdLO1FBFZDqLtSMPuDN-zMWN1_Yb9KMZ NEXT_PUBLIC_OTHER_TAGS=["Coindesk"] -NEXT_PUBLIC_COIN_GECKO_API_KEY= +COIN_GECKO_API_KEY= # sanity cms config NEXT_PUBLIC_SANITY_PROJECT_ID="4wbnjof1" diff --git a/lib/constants/index.ts b/lib/constants/index.ts index 375e9d217..7a0732357 100644 --- a/lib/constants/index.ts +++ b/lib/constants/index.ts @@ -28,7 +28,7 @@ export const ZTG_MIN_LIQUIDITY = 100; export const TAILWIND = resolveTailwindConfig(tailwindConfig as any); export const ZTG_BLUE_COLOR = TAILWIND.theme.colors["ztg-blue"]; -export const COIN_GECKO_API_KEY = process.env["NEXT_PUBLIC_COIN_GECKO_API_KEY"]; +export const COIN_GECKO_API_KEY = process.env["COIN_GECKO_API_KEY"]; export const SUPPORTED_WALLET_NAMES = [ "talisman", From 19af680852b21daeaac563ca19f714494d0ab7ea Mon Sep 17 00:00:00 2001 From: robhyrk Date: Mon, 12 Feb 2024 10:28:31 -0600 Subject: [PATCH 2/4] fix: remove next public web3 auth name --- lib/state/util/web3auth-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/state/util/web3auth-config.ts b/lib/state/util/web3auth-config.ts index c96c18987..3735f09d6 100644 --- a/lib/state/util/web3auth-config.ts +++ b/lib/state/util/web3auth-config.ts @@ -3,7 +3,7 @@ import { CHAIN_NAMESPACES } from "@web3auth/base"; import { Web3Auth } from "@web3auth/modal"; import { atom } from "jotai"; -export const clientId = process.env.NEXT_PUBLIC_WEB3AUTH_CLIENT_ID_ZTG; +export const clientId = process.env.WEB3AUTH_CLIENT_ID_ZTG; class Web3AuthWallet extends BaseDotsamaWallet { constructor({ extensionName, title, installUrl, logo }) { From da411834f42e2e5a7efa238d665660bad2d83a7e Mon Sep 17 00:00:00 2001 From: robhyrk Date: Mon, 12 Feb 2024 10:29:41 -0600 Subject: [PATCH 3/4] fix: naming --- lib/state/util/web3auth-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/state/util/web3auth-config.ts b/lib/state/util/web3auth-config.ts index 3735f09d6..a5cb5c574 100644 --- a/lib/state/util/web3auth-config.ts +++ b/lib/state/util/web3auth-config.ts @@ -3,7 +3,7 @@ import { CHAIN_NAMESPACES } from "@web3auth/base"; import { Web3Auth } from "@web3auth/modal"; import { atom } from "jotai"; -export const clientId = process.env.WEB3AUTH_CLIENT_ID_ZTG; +export const clientId = process.env["WEB3AUTH_CLIENT_ID_ZTG"]; class Web3AuthWallet extends BaseDotsamaWallet { constructor({ extensionName, title, installUrl, logo }) { From 45c1a0fdf56a33974c5872b9203448a76288c046 Mon Sep 17 00:00:00 2001 From: robhyrk Date: Mon, 12 Feb 2024 15:38:50 -0600 Subject: [PATCH 4/4] fix: add back next pub web3 id --- lib/state/util/web3auth-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/state/util/web3auth-config.ts b/lib/state/util/web3auth-config.ts index a5cb5c574..c96c18987 100644 --- a/lib/state/util/web3auth-config.ts +++ b/lib/state/util/web3auth-config.ts @@ -3,7 +3,7 @@ import { CHAIN_NAMESPACES } from "@web3auth/base"; import { Web3Auth } from "@web3auth/modal"; import { atom } from "jotai"; -export const clientId = process.env["WEB3AUTH_CLIENT_ID_ZTG"]; +export const clientId = process.env.NEXT_PUBLIC_WEB3AUTH_CLIENT_ID_ZTG; class Web3AuthWallet extends BaseDotsamaWallet { constructor({ extensionName, title, installUrl, logo }) {