Skip to content

[CONTRACT] Add tests for InvalidAmount error variant across operations #617

Description

@dinahmaccodes

Tier: Medium

Description: Add comprehensive tests for invalid amount handling and validate the InvalidAmount error.

Tasks:

  • Test zero amount escrow deposits
  • Test negative amount operations (if possible)
  • Verify InvalidAmount error (code 14)

Acceptance Criteria:

  • Invalid amounts are rejected
  • Error variant is returned correctly
  • Valid amounts are accepted

Files: contracts/shipment/src/test.rs, contracts/shipment/src/test_escrow_arithmetic.rs


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