From 112a01d72d5f8c4b7b055d42c22afce43055bf08 Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Mon, 28 Oct 2024 17:09:46 +0530 Subject: [PATCH] Use existing env variable for laconic-testnet-2 chain RPC URL --- .env.example | 3 +-- src/utils/constants.ts | 6 +++--- stack/stack-orchestrator/config/app/run.sh | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index f6c712d..b76d155 100644 --- a/.env.example +++ b/.env.example @@ -2,5 +2,4 @@ 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 -REACT_APP_LACONICD_RPC_URL=https://laconicd.laconic.com -REACT_APP_LACONICD_TESTNET_2_RPC_URL= \ No newline at end of file +REACT_APP_LACONICD_RPC_URL=https://laconicd-sapo.laconic.com diff --git a/src/utils/constants.ts b/src/utils/constants.ts index f439429..8269e8e 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -8,19 +8,19 @@ export const DEFAULT_NETWORKS = [ chainId: 'laconic-testnet-2', networkName: 'laconicd testnet-2', namespace: COSMOS, - rpcUrl: process.env.REACT_APP_LACONICD_TESTNET_2_RPC_URL!, + rpcUrl: process.env.REACT_APP_LACONICD_RPC_URL!, blockExplorerUrl: '', nativeDenom: 'alnt', addressPrefix: 'laconic', coinType: '118', - gasPrice: '1', + gasPrice: '0.001', isDefault: true, }, { chainId: 'laconic_9000-1', networkName: 'laconicd', namespace: COSMOS, - rpcUrl: process.env.REACT_APP_LACONICD_RPC_URL!, + rpcUrl: "https://laconicd.laconic.com", blockExplorerUrl: '', nativeDenom: 'alnt', addressPrefix: 'laconic', diff --git a/stack/stack-orchestrator/config/app/run.sh b/stack/stack-orchestrator/config/app/run.sh index 929beec..77696fe 100755 --- a/stack/stack-orchestrator/config/app/run.sh +++ b/stack/stack-orchestrator/config/app/run.sh @@ -16,7 +16,6 @@ REACT_APP_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_ID \ REACT_APP_DEFAULT_GAS_PRICE=$CERC_DEFAULT_GAS_PRICE \ REACT_APP_GAS_ADJUSTMENT=$CERC_GAS_ADJUSTMENT \ REACT_APP_LACONICD_RPC_URL=$CERC_LACONICD_RPC_URL \ -REACT_APP_LACONICD_TESTNET_2_RPC_URL=$CERC_LACONICD_TESTNET_2_RPC_URL \ yarn build # Define the directory and file path