Skip to content

Implement Maximum Tags Per Invoice Enforcement #324

@Baskarayelu

Description

@Baskarayelu

Description
Enforce a maximum number of tags per invoice (e.g. 10) in add_invoice_tag and at creation; return TagLimitExceeded when exceeded.

Requirements and context

  • Must be secure, tested, and documented
  • Prevents unbounded storage growth
  • Smart contracts only (Soroban/Rust)

Suggested execution

  1. Fork the repo and create a branch
    git checkout -b feature/max-tags-per-invoice
  2. Implement changes
    • Implement: validation in src/invoice.rs, src/verification.rs
    • Add tests for at-limit and over-limit
    • Document in docs/contracts/invoice.md
  3. Test and commit
    • Run cargo test
    • Include test output and security notes

Example commit message
feat: maximum tags per invoice enforcement with tests and docs

Guidelines

  • Minimum 95 percent test coverage
  • Clear documentation
  • Timeframe: 96 hours

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions