Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dotenv to avoid network errors upon setup #81

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

anegg0
Copy link

@anegg0 anegg0 commented Aug 8, 2024

Problem:

In its current state, this repo lets users launch the setup script by invoking ./scripts/setup.ts with PRIVATE_KEY="0xYourPrivateKey" L2_RPC_URL="<https://sepolia-rollup.arbitrum.io/rpc>" L3_RPC_URL="http://localhost:8449" yarn run setup.
This can lead to errors if the user mistypes the L2_RPC_URL or L3_RPC_URL (my scripts failed even with the correct URLs).

This PR is an attempt at solving the problem by adding a .env-example file and a dotenv integration.

@anegg0 anegg0 marked this pull request as ready for review August 8, 2024 01:05
@anegg0 anegg0 requested a review from TucksonDev August 8, 2024 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant