-
Notifications
You must be signed in to change notification settings - Fork 163
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
update anchor and solana #156
Conversation
Hope i get right! |
Problems faced during upgrade:
|
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.
Thanks for getting started with this. Updating to 0.30 is definitely on our roadmap. I'm afraid with the current state of the PR already existing whirlpool accounts can no longer be parsed.
Wanted to make some minor tweaks to the versions and config but don't have permission to push to your fork. Anyway it will probably take a little while before we can fully upgrade to 0.30.
In the meantime if you are just trying to do CPIs (depending on what your use-case is) you might be able to use our cpi crate: https://github.com/orca-so/whirlpool-cpi
#[derive(Default)] | ||
#[repr(C)] | ||
#[repr(align(16))] | ||
#[account(zero_copy)] | ||
pub struct Whirlpool { |
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.
I'm afraid that by changing the ordering of the properties here to be compliant with repr(C) rules it can no longer parse whirlpool accounts. On chain the accounts follow a certain byte layout, AFAIK this would change the byte layout of the Whirlpool account
Closing this since it is superseded by #174 |
No description provided.