From 65cef25f07217ca23b57a40e76a26a16a0515f3f Mon Sep 17 00:00:00 2001 From: Sahilgat <38809578+Sahilgat@users.noreply.github.com> Date: Wed, 13 Sep 2023 13:01:27 +0800 Subject: [PATCH] Use env variables --- webapp/api/_onchain.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/api/_onchain.ts b/webapp/api/_onchain.ts index e908ac61..fc342aee 100644 --- a/webapp/api/_onchain.ts +++ b/webapp/api/_onchain.ts @@ -48,13 +48,13 @@ const ASSETS: { const PROVIDERS: { [chainId: number]: ethers.providers.StaticJsonRpcProvider } = { 1: new ethers.providers.StaticJsonRpcProvider( - "https://eth-mainnet.alchemyapi.io/v2/vI8OBZj4Wue9yNPSDVa7Klqt-UeRywrx" + process.env.REACT_APP_MAINNET_URI ), 43114: new ethers.providers.StaticJsonRpcProvider( - "https://api.avax.network/ext/bc/C/rpc" + process.env.REACT_APP_AVAX_URI ), 777: new ethers.providers.StaticJsonRpcProvider( - "https://eth-mainnet.alchemyapi.io/v2/vI8OBZj4Wue9yNPSDVa7Klqt-UeRywrx" + process.env.REACT_APP_MAINNET_URI ), };