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

refactor(token/cli): extract duplicate config loading logic #57

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

dylankyc
Copy link
Contributor

Extract duplicated config loading code into a new get_cli_config function to improve code maintainability and reduce duplication. The function handles loading config from file path or default locations.

  • Move common config loading logic into standalone function
  • Update new() and new_with_clients_and_ws_url to use shared function
  • No functional changes

@dylankyc
Copy link
Contributor Author

Hi @joncinque , I've remake the PR here.

@joncinque
Copy link
Contributor

This looks like a copy of #58 -- can you add the other commits here instead?

Extract duplicated config loading code into a new `get_cli_config` function to
improve code maintainability and reduce duplication. The function handles loading
config from file path or default locations.
@dylankyc
Copy link
Contributor Author

Sorry about that! I mistakenly pushed the wrong code, but I have now pushed the correct code. Please take a moment to review it.

Copy link
Contributor

@joncinque joncinque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution!

@joncinque joncinque merged commit 61658b9 into solana-program:main Jan 13, 2025
19 checks passed
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.

2 participants