Description
Add dedicated unit tests for the shared Stellar memo format validation utility to ensure memos adhere strictly to the MP:<code> structure required by the settlement engine.
Context & Requirements
Stellar transactions rely on standardized memos to link on-chain payments to specific expenses (MP:<code>). While validation functions exist, test coverage for edge cases (such as missing prefixes, invalid code lengths, or unexpected characters) needs reinforcement.
Acceptance Criteria
Implementation Guidance
- Likely files to touch:
src/utils/ (locate existing memo helper), new test file.
- Use Vitest assertions matching the project's testing setup.
Testing & Validation
- Execute
npm test and verify that the new memo validation test suite runs and passes cleanly.
Submission Guidelines
- Open a Pull Request referencing
Closes #<issue-number>.
- Adhere to TypeScript strict rules and existing codebase formatting standards.
Wave complexity: Trivial
Description
Add dedicated unit tests for the shared Stellar memo format validation utility to ensure memos adhere strictly to the
MP:<code>structure required by the settlement engine.Context & Requirements
Stellar transactions rely on standardized memos to link on-chain payments to specific expenses (
MP:<code>). While validation functions exist, test coverage for edge cases (such as missing prefixes, invalid code lengths, or unexpected characters) needs reinforcement.Acceptance Criteria
src/utils/__tests__/memo.test.ts(or equivalent test directory).MP:AB123) and invalid memos (empty string, missingMP:prefix, lowercase letters, special characters).Implementation Guidance
src/utils/(locate existing memo helper), new test file.Testing & Validation
npm testand verify that the new memo validation test suite runs and passes cleanly.Submission Guidelines
Closes #<issue-number>.Wave complexity: Trivial