fix: move token account creation to preinit#2194
Conversation
📝 WalkthroughWalkthroughThis PR refactors the light_pdas macro system to consolidate account creation (PDAs, mints, token accounts, and ATAs) into a unified pre_init phase. Previously, account creation was split across pre_init and finalize stages. The builder now provides orchestration methods and internal body generators to eliminate code duplication and simplify the control flow. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.