Fix: validate account_id as StrKey G-address - #1202
Conversation
|
@TheShnider 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! 🚀 |
📝 WalkthroughWalkthroughChangesAccount ID validation
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 Warning |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@services/indexer/src/api/account_activity.rs`:
- Around line 64-69: Update the invalid-account test in the account activity API
tests to use a 56-character G-prefixed account value with an invalid checksum
instead of "invalid", ensuring it reaches the
stellar_strkey::Strkey::from_string validation path. Assert that the response
error field equals "invalid_filter", while preserving the existing
invalid-account request flow.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 3dbd7419-5276-4e76-a9cd-c917a0b3b004
📒 Files selected for processing (3)
services/indexer/Cargo.tomlservices/indexer/src/api/account_activity.rsservices/indexer/tests/account_activity_api_test.rs
Description
Closes #1117
Type of Change
Security Impact
Testing
Test Coverage
Manual Testing Steps
Breaking Changes
Checklist
For High-Security Changes
Related Issues
Closes #
Related to #
Additional Context
Reviewer Notes
Summary by CodeRabbit
Bug Fixes
Tests