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

Update rpc.ts #483

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update rpc.ts #483

wants to merge 1 commit into from

Conversation

mdqst
Copy link

@mdqst mdqst commented Oct 15, 2024

Changes and Explanation

Extracted process.env.NEXT_PUBLIC_TENDERLY_RPC_KEY into a constant (TENDERLY_RPC_KEY):

Reason: This avoids repetition of process.env.NEXT_PUBLIC_TENDERLY_RPC_KEY, making the code more DRY (Don't Repeat Yourself). If you need to update or debug the environment variable, it's easier to do it from one place.

Removed unnecessary semicolon after import statements:

Reason: This is mostly stylistic, but consistent formatting can improve readability.

These changes enhance the maintainability and readability of the code without affecting functionality. It reduces redundancy and simplifies the handling of the TENDERLY_RPC_KEY environment variable.

Changes and Explanation:

Extracted process.env.NEXT_PUBLIC_TENDERLY_RPC_KEY into a constant (TENDERLY_RPC_KEY):
Reason: This avoids repetition of process.env.NEXT_PUBLIC_TENDERLY_RPC_KEY, making the code more DRY (Don't Repeat Yourself). If you need to update or debug the environment variable, it's easier to do it from one place.

Removed unnecessary semicolon after import statements:
Reason: This is mostly stylistic, but consistent formatting can improve readability.

These changes enhance the maintainability and readability of the code without affecting functionality. It reduces redundancy and simplifies the handling of the TENDERLY_RPC_KEY environment variable.
Copy link

vercel bot commented Oct 15, 2024

@mdqst is attempting to deploy a commit to the Nouns Builder Team on Vercel.

A member of the Team first needs to authorize it.

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