Skip to content

Fix/contract sender warning#163

Merged
codeZe-us merged 3 commits intoBoxkit-Labs:mainfrom
codewithzubair07:fix/contract-sender-warning
Mar 26, 2026
Merged

Fix/contract sender warning#163
codeZe-us merged 3 commits intoBoxkit-Labs:mainfrom
codewithzubair07:fix/contract-sender-warning

Conversation

@codewithzubair07
Copy link
Copy Markdown
Contributor

Implements contract-sender warning logic in extractRouting for C-address inputs.

Changes
Detects contract (C) addresses
Returns default routing state:
destinationBaseAccount: null
routingId: null
routingSource: "none"
Adds warning:
code: CONTRACT_SENDER_DETECTED
severity: warn
Notes
Avoids treating contract addresses as errors
Aligns with existing Warning type constraints
Keeps behavior consistent with existing routing logic
Result

C-address inputs now return a safe fallback state with a proper warning instead of failing silentl
close #132

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 26, 2026

@codewithzubair07 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! 🚀

Learn more about application limits

@codewithzubair07 codewithzubair07 force-pushed the fix/contract-sender-warning branch from 3582810 to d9d54ef Compare March 26, 2026 17:34
@codeZe-us codeZe-us self-requested a review March 26, 2026 21:19
Copy link
Copy Markdown
Contributor

@codeZe-us codeZe-us left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codewithzubair07 This is okay, thanks

@codeZe-us codeZe-us merged commit 4e5bd98 into Boxkit-Labs:main Mar 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement contract-sender warning logic in extractRouting when source is C address

3 participants