coral-xyz / anchor

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

fix: Add support for const generics in types inside of accounts in declare_program #2965

Closed cryptopapi997 closed 1 month ago

cryptopapi997 commented 1 month ago

Currently const generics are not supported by declare_program!. Reason is two things:

This PR fixes this.

vercel[bot] commented 1 month ago

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

A member of the Team first needs to authorize it.

cryptopapi997 commented 1 month ago

Thanks for the quick response! Just added it. Also, while fixing this I found two other small bugs related to declare_program!, I've added PRs for them here: