fix: add owner and mint check create ata idempotent#2139
fix: add owner and mint check create ata idempotent#2139ananas-block wants to merge 1 commit intomainfrom
Conversation
WalkthroughThe PR enhances ATA creation's idempotent validation by adding CToken deserialization to rigorously verify internal fields (mint and owner) match expected values, replacing the previous approach that only checked PDA derivation. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)programs/**/*.rs📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (25)📓 Common learnings📚 Learning: 2025-12-07T18:10:14.606ZApplied to files:
📚 Learning: 2025-11-24T18:01:54.689ZApplied to files:
📚 Learning: 2025-11-24T17:59:54.233ZApplied to files:
📚 Learning: 2025-12-07T03:17:42.217ZApplied to files:
📚 Learning: 2025-12-07T03:17:42.217ZApplied to files:
📚 Learning: 2025-12-07T03:17:28.803ZApplied to files:
📚 Learning: 2025-11-24T17:58:50.237ZApplied to files:
📚 Learning: 2025-11-24T17:59:36.701ZApplied to files:
📚 Learning: 2025-12-07T18:10:14.606ZApplied to files:
📚 Learning: 2025-11-24T17:59:13.714ZApplied to files:
📚 Learning: 2025-12-06T00:49:21.983ZApplied to files:
📚 Learning: 2025-11-24T17:57:39.230ZApplied to files:
📚 Learning: 2025-12-07T18:09:57.240ZApplied to files:
📚 Learning: 2025-12-07T03:17:42.217ZApplied to files:
📚 Learning: 2025-12-07T03:17:42.217ZApplied to files:
📚 Learning: 2025-12-06T00:49:21.983ZApplied to files:
📚 Learning: 2025-11-24T17:57:53.312ZApplied to files:
📚 Learning: 2025-11-24T17:56:50.011ZApplied to files:
📚 Learning: 2025-11-24T17:58:50.237ZApplied to files:
📚 Learning: 2025-11-24T17:58:50.237ZApplied to files:
📚 Learning: 2025-11-24T17:58:50.237ZApplied to files:
📚 Learning: 2025-11-24T17:58:50.237ZApplied to files:
📚 Learning: 2025-12-07T03:17:42.217ZApplied to files:
📚 Learning: 2025-11-24T17:58:50.237ZApplied to files:
🧬 Code graph analysis (1)programs/compressed-token/program/src/create_associated_token_account.rs (2)
⏰ Context from checks skipped due to timeout of 900000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
🔇 Additional comments (2)
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
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.