Skip to content

Commit

Permalink
Merge pull request #21 from tomrpl/feat/env
Browse files Browse the repository at this point in the history
feat(env): fixing env trouble
  • Loading branch information
tomrpl authored Aug 1, 2024
2 parents 256af0c + 7879b65 commit 3fb617d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/provider/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ export const getProvider = (chainId: number): ethers.JsonRpcProvider => {

if (chainId === 1) {
endpoint = process.env.REACT_APP_RPC_URL_MAINNET;
console.log("chaindId: 1 - Ethereum Mainnet");
} else if (chainId === 8453) {
endpoint = process.env.REACT_APP_RPC_URL_BASE;
console.log("chaindId: 8453 - Base");
}

if (!endpoint) {
Expand Down

0 comments on commit 3fb617d

Please sign in to comment.