coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.36k stars 1.25k forks source link

Fix "align" repr support in declare_program! #3056

Closed 0xBurbo closed 16 hours ago

0xBurbo commented 5 days ago

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.

vercel[bot] commented 5 days ago

@0xBurbo is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

0xBurbo commented 22 hours ago

Changelog has been updated