Skip to content

Commit d26ef8d

Browse files
committed
match getter file format
1 parent f2204bc commit d26ef8d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/getRpcUrl.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ import { config } from 'dotenv'
33
// Load environment variables from .env file
44
config({ quiet: true })
55

6+
// Parse the relevant ENV VARs or use defaults
7+
const rpcUrl = process.env.XYO_CHAIN_RPC_URL ?? 'http://localhost:8080/rpc'
8+
69
/**
710
* Gets the rpcUrl to use for interacting with the chain
811
* @returns The rpcUrl to use for interacting with the chain
912
*/
10-
export const getRpcUrl = (): string => process.env.XYO_CHAIN_RPC_URL ?? 'http://localhost:8080/rpc'
13+
export const getRpcUrl = (): string => rpcUrl

0 commit comments

Comments
 (0)