-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix "align" repr support in declare_program! #3056
Conversation
@0xBurbo is attempting to deploy a commit to the coral-xyz Team on Vercel. A member of the Team first needs to authorize it. |
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 the fix! Could you note this fix in the CHANGELOG?
Co-authored-by: acheron <98934430+acheroncrypto@users.noreply.github.com>
Changelog has been updated |
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.
Thank you!
Problem: During declare_program Current code generates token stream that writes account representation alignment including the integer suffix: "#[align(8usize)]". This breaks compilation, and should look like "#[align(8)]"
This commit uses a proc_macro2 literal without the integer suffix to resolve the issue.