We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2204bc commit d26ef8dCopy full SHA for d26ef8d
1 file changed
src/getRpcUrl.ts
@@ -3,8 +3,11 @@ import { config } from 'dotenv'
3
// Load environment variables from .env file
4
config({ quiet: true })
5
6
+// Parse the relevant ENV VARs or use defaults
7
+const rpcUrl = process.env.XYO_CHAIN_RPC_URL ?? 'http://localhost:8080/rpc'
8
+
9
/**
10
* Gets the rpcUrl to use for interacting with the chain
11
* @returns The rpcUrl to use for interacting with the chain
12
*/
-export const getRpcUrl = (): string => process.env.XYO_CHAIN_RPC_URL ?? 'http://localhost:8080/rpc'
13
+export const getRpcUrl = (): string => rpcUrl
0 commit comments