Repository navigation
Implement contract-sender warning for source C-addresses in extractRouting - #326
Conversation
…nostics and tests
|
@Elizzy01 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
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: defaults Review profile: CHILL 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. 📝 WalkthroughWalkthrough
ChangesContract-source detection
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Feature Suggested reviewers: Merge Risk: ⚪ Minimal · up to No actionable merge-blocking risk is established. The change flags contract-origin payments while preserving routing for invalid source-account strings; merge after normal checks pass. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change is contained within the routing library, but contract-source inputs now suppress destination-error reporting and optional required-memo diagnostics. Cleared routing remains non-routable; whether downstream applications also treat it as a rejection is not established. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
Closes #321
Overview
Adds contract sender detection logic to extractRouting to identify contract source accounts (
C...), clear the routing state, and emit a structuredCONTRACT_SENDER_DETECTEDwarning.Key Changes
input.sourceAccountand identifies contract addresses (parsed.kind === "C").destinationBaseAccount: null,routingId: null,routingSource: "none").CONTRACT_SENDER_DETECTEDwarning withinfoseverity, filtered byminSeverityLeveland preserving existing sanitization warnings.sourceAccountentries.CONTRACT_SENDER_DETECTEDmessage mapping.Summary by CodeRabbit