From b92db8390cde8fef548c3ff4c407fac6ce16f064 Mon Sep 17 00:00:00 2001 From: s-damian Date: Sat, 31 Aug 2024 16:16:45 +0300 Subject: [PATCH] DEVNET_CUSTOM_RPC_URL --- app/frontend/.env.example | 2 +- app/frontend/src/utils/anchorUtils.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/frontend/.env.example b/app/frontend/.env.example index 103349c..9e2dab4 100644 --- a/app/frontend/.env.example +++ b/app/frontend/.env.example @@ -7,7 +7,7 @@ NEXT_PUBLIC_REACT_APP_SOLANA_NETWORK="localnet" # Only useful if: NEXT_PUBLIC_REACT_APP_SOLANA_NETWORK="devnet-custom-rpc" -CUSTOM_RPC_URL="" +DEVNET_CUSTOM_RPC_URL="" # NEXT_PUBLIC_REACT_APP_SOLANA_COMMITMENT - Possible options: # - processed - The transaction has been seen by a validator and processed by that validator, but it hasn't yet been confirmed by the network. It could still be canceled or modified. diff --git a/app/frontend/src/utils/anchorUtils.tsx b/app/frontend/src/utils/anchorUtils.tsx index 2a492c5..0c51e65 100644 --- a/app/frontend/src/utils/anchorUtils.tsx +++ b/app/frontend/src/utils/anchorUtils.tsx @@ -33,8 +33,8 @@ export const getNetworkAdapterUrl = (network: string): string => { case "localnet": return "http://127.0.0.1:8899"; case "devnet-custom-rpc": - if (process.env.CUSTOM_RPC_URL) { - return JSON.parse(process.env.CUSTOM_RPC_URL); + if (process.env.DEVNET_CUSTOM_RPC_URL) { + return JSON.parse(process.env.DEVNET_CUSTOM_RPC_URL); } return clusterApiUrl(WalletAdapterNetwork.Devnet); case "devnet":