Skip to content

Fix invoice-token approve to reject negative allowances#62

Merged
Jayrodri088 merged 1 commit intoStellarState:mainfrom
Emmy123222:fix/invoice-token-approve-negative-allowances
Mar 28, 2026
Merged

Fix invoice-token approve to reject negative allowances#62
Jayrodri088 merged 1 commit intoStellarState:mainfrom
Emmy123222:fix/invoice-token-approve-negative-allowances

Conversation

@Emmy123222
Copy link
Copy Markdown
Contributor

  • Add validation in approve function to reject amount < 0
  • Reuse existing Error::InvalidAmount variant
  • Add comprehensive unit tests for negative amount rejection
  • Tests cover: negative amount rejection, zero amount acceptance, invalid expiration rejection

Closes #28

- Add validation in approve function to reject amount < 0
- Reuse existing Error::InvalidAmount variant
- Add comprehensive unit tests for negative amount rejection
- Tests cover: negative amount rejection, zero amount acceptance, invalid expiration rejection

Closes StellarState#28
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 28, 2026

@Emmy123222 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

@Jayrodri088 Jayrodri088 merged commit 7f89da6 into StellarState:main Mar 28, 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.

[Bug] invoice-token approve should reject negative allowances

2 participants