Priority: high
Description
The carbon_credit contract has 10 tests but is missing coverage for: minting credits for a suspended project, retiring more credits than owned, and the serial number conflict detection. These are the most critical business rules in the entire system.
Acceptance Criteria
- Test for minting credits on a suspended project returns ProjectSuspended
- Test for retiring more credits than owned returns InsufficientCredits
- Test for serial number conflict detection returns SerialNumberConflict
- Test for retiring already-retired credits returns AlreadyRetired
- Test for zero amount retirement returns ZeroAmountNotAllowed
Priority: high
Description
The carbon_credit contract has 10 tests but is missing coverage for: minting credits for a suspended project, retiring more credits than owned, and the serial number conflict detection. These are the most critical business rules in the entire system.
Acceptance Criteria