coral-xyz / anchor

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

bugfix: inline cpi variables to fix stack violation warnings #2913

Closed sunguru98 closed 5 months ago

sunguru98 commented 5 months ago

The token extensions macro is responsible for initializing extensions while creating a mint was having way too many repetitive stack variables that resulted in a "Stack size overset" warning while building programs. It wasn't occurring until there were way too many extensions initialized. Hence this fix inlines the variables directly into arguments to fix the warning that arose while building the WNS program.

vercel[bot] commented 5 months ago

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

A member of the Team first needs to authorize it.

luke-truitt commented 5 months ago

This issue applies generally to other Token Extensions projects as well, this resolves outstanding issues on the RWA Token Extension project as well. would be great to have in the next release.

sunguru98 commented 5 months ago

My bad ser. Apologies.

sunguru98 commented 5 months ago

Done ser @acheroncrypto

sunguru98 commented 5 months ago

Hope this resolves ser @acheroncrypto