-
Notifications
You must be signed in to change notification settings - Fork 158
Use Address from Solana SDK
#118
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
base: febo/sdk-program-error
Are you sure you want to change the base?
Conversation
662299a to
fd9e12e
Compare
fa49062 to
4100e84
Compare
ea7c848 to
bb588af
Compare
4100e84 to
8077fe8
Compare
b026be9 to
baa8beb
Compare
Cargo.toml
Outdated
| pinocchio-pubkey = { version = "0.3", path = "sdk/pubkey" } | ||
| quote = "1.0" | ||
| regex = "1" | ||
| solana-address = { version = "1.0", git = "https://github.com/febo/solana-sdk.git", branch = "derive-address" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be updated by the published crate once available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All looks good to me. 99% mechanical refactor, with a few straightforward adaptations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me! Just a couple of little things
|
Update dependency branch to use the |
9d5e409 to
17d0edd
Compare
Problem
A
Pubkeyis currently being represented as a lightweight alias over a[u8; 32]array. This is different from thePubkeytype on Solana SDK, which makes it confusing to write code that supports both pubkey "types".Solution
Use the new
Addresstype from Solana SDK instead. ThePubkeytype is an alias toAddress, so making this change will result in both pinocchio and SDK to use the same type.This PR also remove the
pinocchio-pubkeycrate, since all the functionality has been added tosolana-address.