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

Replace pyth_sdk_solana::AccKey with solana_program::pubkey::Pubkey #69

Merged
merged 4 commits into from
Sep 1, 2022

Conversation

tompntn
Copy link
Contributor

@tompntn tompntn commented Aug 31, 2022

When using pyth-sdk-solana in a project that also uses solana-sdk , the fact that our account keys are represented using pyth_sdk_solana::state::AccKey instead of solana_sdk::pubkey::Pubkey is quite unergonomic. Comparing a AccKey to a Pubkey requires converting them to be the same type, so code becomes littered with calls to conversion functions.

This PR changes pyth-sdk-solana to use solana_program::pubkey::Pubkey for account keys.

Bumping the major version as this is a breaking change.

ali-bahjati
ali-bahjati previously approved these changes Aug 31, 2022
Copy link
Collaborator

@ali-bahjati ali-bahjati left a comment

Choose a reason for hiding this comment

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

:shipit:

@tompntn tompntn merged commit 0225ed4 into main Sep 1, 2022
@tompntn tompntn deleted the solana-pubkey branch September 1, 2022 10:32
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