-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Labels
ETA - less than 12 hrsStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededsmart-contract
Description
Description:
Write comprehensive test cases for the claim winnings flow to ensure correct amounts and double-claim prevention.
Requirements and Context:
- Must achieve minimum 95% test coverage
- Should test successful claim by winner
- Should test rejection for non-winner and unresolved event
- Should test double claim rejection
- Should test claim amount correctness (proportional, fees)
- Should test multiple winners claiming
- Should test event emission
Suggested Execution:
-
Fork the repo and create a branch
git checkout -b test/claim-winnings-tests
-
Implement changes
- Write tests:
src/test.rs(claim winnings tests) - Add edge case and security tests; validate test coverage
- Write tests:
-
Test and commit
- Run tests with coverage; include test output
Example Commit Message:
test: add comprehensive tests for claim winnings flow
Guidelines:
- Minimum 95 percent test coverage
- Clear documentation
- Timeframe: 48 hours
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ETA - less than 12 hrsStellar WaveIssues in the Stellar wave programIssues in the Stellar wave programenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededsmart-contract