Skip to content

Commit

Permalink
Loading RPC URL from ENV Variable for mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshpw committed May 28, 2024
1 parent d036abe commit 6ee17c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/beacon/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type Network = "mainnet" | "ghostnet"
export const ALICE_PRIV_KEY = "edsk3QoqBuvdamxouPhin7swCvkQNgq4jP5KZPbwWNnwdZpSpJiEbq"

export const rpcNodes: Record<Network, string> = {
mainnet: "https://mainnet.api.tez.ie",
mainnet: getEnv(EnvKey.REACT_APP_RPC_NETWORK_MAINNET) || "https://mainnet.api.tez.ie",
ghostnet: getEnv(EnvKey.REACT_APP_RPC_NETWORK_GHOSTNET) || "https://ghostnet.smartpy.io"
}

Expand Down
1 change: 1 addition & 0 deletions src/services/config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export enum EnvKey {
REACT_APP_BASE_URL = "REACT_APP_BASE_URL",
REACT_APP_DAO_DEPLOYER_API = "REACT_APP_DAO_DEPLOYER_API",
REACT_APP_RPC_NETWORK_GHOSTNET = "REACT_APP_RPC_NETWORK_GHOSTNET",
REACT_APP_RPC_NETWORK_MAINNET = "REACT_APP_RPC_NETWORK_MAINNET",
}

export enum FeatureFlag {
Expand Down

0 comments on commit 6ee17c1

Please sign in to comment.