Skip to content

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-behjati
ali-behjati previously approved these changes Aug 31, 2022
Copy link
Collaborator

@ali-behjati ali-behjati 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