Skip to content

Commit

Permalink
Use env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Sahilgat committed Sep 13, 2023
1 parent a3426bf commit 65cef25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/api/_onchain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
};

Expand Down

0 comments on commit 65cef25

Please sign in to comment.