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

Remove deprecated functions from cli #66

Open
thsioutas opened this issue Jan 29, 2025 · 1 comment
Open

Remove deprecated functions from cli #66

thsioutas opened this issue Jan 29, 2025 · 1 comment

Comments

@thsioutas
Copy link

Hello! I wanted to ask you if this: solana-labs/solana-program-library#6305 still needs to be addressed?

I was checking the code and I don't really see the added value of the deprecated is_valid_pubkey here:

if is_valid_pubkey(path).is_ok() {

Why don't we use directly pubkey_from_path? is_valid_pubkey uses SignerSource::parse which is also used in pubkey_from_path for the necessary parsing.

p.s. I was trying to find a note or something regarding open issues from the old read-only repo but couldn't find something relevant.

Thanks in advance!

@joncinque
Copy link
Contributor

It does still need to be addressed! You've outlined pretty much the exact way to handle the issue -- through parsers instead of validators.

You can see a PR removing the deprecated functions for the token-cli at solana-labs/solana-program-library#7447 if you want some inspiration

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

No branches or pull requests

2 participants