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 pubkeys #3

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

Add pubkeys #3

wants to merge 1 commit into from

Conversation

n00m4d
Copy link
Collaborator

@n00m4d n00m4d commented Sep 30, 2024

What

This PR adds pubkeys to the repo.

Why

If crate which imports this constants uses same solana-program version it can import Pubkeys. But if solana version are different it can import raw keys, no compilation errors in such case. It was tested with solana versions 1.18.15 and 2.0

Copy link
Collaborator

@kstepanovdev kstepanovdev left a comment

Choose a reason for hiding this comment

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

Unfortunately, adding a dependency and casting may be redundant. Declaring constants might be done client-side without adding a dependency for the crate. That dependency will not bloat the source, albeit it will add additional dependency indirection level which can be hard to resolve in the future.

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