Skip to content

Commit

Permalink
DEVNET_CUSTOM_RPC_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
s-damian committed Aug 31, 2024
1 parent fd6c4b1 commit b92db83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/frontend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions app/frontend/src/utils/anchorUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit b92db83

Please sign in to comment.