From 251d92fc83141e6c2d4008ef1a64b35a34918c1d Mon Sep 17 00:00:00 2001 From: Pranav Date: Mon, 22 Sep 2025 12:42:57 +0530 Subject: [PATCH 1/3] Remove the wallet connect project id variable --- .env.example | 2 -- src/hooks/useInitialization.ts | 4 ++++ .../compose/docker-compose-zenith-wallet-web.yml | 1 - stack/stack-orchestrator/config/app/run.sh | 2 -- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 9a31543..5b518fc 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,3 @@ -REACT_APP_WALLET_CONNECT_PROJECT_ID= - REACT_APP_DEFAULT_GAS_PRICE=0.025 # Reference: https://github.com/cosmos/cosmos-sdk/issues/16020 REACT_APP_GAS_ADJUSTMENT=2 diff --git a/src/hooks/useInitialization.ts b/src/hooks/useInitialization.ts index 1cd5908..3d93754 100644 --- a/src/hooks/useInitialization.ts +++ b/src/hooks/useInitialization.ts @@ -20,6 +20,10 @@ export default function useInitialization( }, [setWeb3wallet]); useEffect(() => { + if (!import.meta.env.REACT_APP_WALLET_CONNECT_PROJECT_ID) { + return; + } + if (!initialized) { onInitialize(); } diff --git a/stack/stack-orchestrator/compose/docker-compose-zenith-wallet-web.yml b/stack/stack-orchestrator/compose/docker-compose-zenith-wallet-web.yml index fbe8cd0..aefd177 100644 --- a/stack/stack-orchestrator/compose/docker-compose-zenith-wallet-web.yml +++ b/stack/stack-orchestrator/compose/docker-compose-zenith-wallet-web.yml @@ -5,7 +5,6 @@ services: image: cerc/zenith-wallet-web:local environment: CERC_SCRIPT_DEBUG: ${CERC_SCRIPT_DEBUG} - WALLET_CONNECT_ID: ${WALLET_CONNECT_ID} WALLET_CONNECT_VERIFY_CODE: ${WALLET_CONNECT_VERIFY_CODE} CERC_DEFAULT_GAS_PRICE: ${CERC_DEFAULT_GAS_PRICE:-0.025} CERC_GAS_ADJUSTMENT: ${CERC_GAS_ADJUSTMENT:-2} diff --git a/stack/stack-orchestrator/config/app/run.sh b/stack/stack-orchestrator/config/app/run.sh index ebfa2bb..0f0980b 100755 --- a/stack/stack-orchestrator/config/app/run.sh +++ b/stack/stack-orchestrator/config/app/run.sh @@ -6,13 +6,11 @@ if [ -n "$CERC_SCRIPT_DEBUG" ]; then fi echo "Using the following env variables:" -echo "WALLET_CONNECT_ID: ${WALLET_CONNECT_ID}" echo "CERC_DEFAULT_GAS_PRICE: ${CERC_DEFAULT_GAS_PRICE}" echo "CERC_GAS_ADJUSTMENT: ${CERC_GAS_ADJUSTMENT}" echo "CERC_ALLOWED_URLS: ${CERC_ALLOWED_URLS}" # Build with required env -export REACT_APP_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_ID export REACT_APP_DEFAULT_GAS_PRICE=$CERC_DEFAULT_GAS_PRICE export REACT_APP_GAS_ADJUSTMENT=$CERC_GAS_ADJUSTMENT export REACT_APP_ALLOWED_URLS=$CERC_ALLOWED_URLS -- 2.45.2 From db10c4f353d9f12b3f4d4d772753c1f57758aee7 Mon Sep 17 00:00:00 2001 From: Pranav Date: Mon, 22 Sep 2025 14:45:05 +0530 Subject: [PATCH 2/3] Update the zenith wallet version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cd5fa19..083be7f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "web-wallet", - "version": "0.1.7-zenith-0.2.1", + "version": "0.1.8-zenith-0.2.2", "private": true, "dependencies": { "@laconic-network/cosmjs-util": "^0.1.0", -- 2.45.2 From 2d018255b1faa6a2fcd3f3444e52e18d7447cb20 Mon Sep 17 00:00:00 2001 From: Pranav Date: Mon, 22 Sep 2025 17:12:32 +0530 Subject: [PATCH 3/3] Update zenith wallet web version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 083be7f..6842a50 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "web-wallet", - "version": "0.1.8-zenith-0.2.2", + "version": "0.1.7-zenith-0.2.2", "private": true, "dependencies": { "@laconic-network/cosmjs-util": "^0.1.0", -- 2.45.2