fix: allow transient account closure - #162
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: magicblock-labs/magicblock-engine/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe account transition validator now allows a Transient account to transition to Closed at the same or a newer slot. The lifecycle table and matrix test document and check this transition. Priority: ➖ Normal Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The change enables the intended transient-account deletion while preserving the existing transition safeguards. No concrete merge-blocking risk is evident. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
7fa0569 to
770132e
Compare
What changed
After undelegation, ER needs to close the local account so its next use can rematerialize it. Engine previously rejected
Transient -> Closed, leaving that account resident. This change allows the transition at the same or a newer slot through the existing delete operation; slot regressions and other unsupported transitions remain rejected.Closes #161