Skip to content

test(rewards): cover contract edge cases#63

Merged
joelpeace48-cell merged 3 commits intoFinesseStudioLab:mainfrom
sshdopey:issue-10
Mar 25, 2026
Merged

test(rewards): cover contract edge cases#63
joelpeace48-cell merged 3 commits intoFinesseStudioLab:mainfrom
sshdopey:issue-10

Conversation

@sshdopey
Copy link
Copy Markdown
Contributor

What

Add the missing edge-case tests across the rewards and campaign contracts.

Why

Fixes #10

The contracts need direct coverage for insufficient claims, overflow handling, duplicate campaign registration, and safe access before rewards initialization.

How

This expands the rewards tests with claim, overflow, and uninitialized read coverage, and adds a focused campaign test for duplicate registration returning false.

Testing

  • cargo test --workspace

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

@sshdopey is attempting to deploy a commit to the joelpeace48-cell's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 25, 2026

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

@sshdopey
Copy link
Copy Markdown
Contributor Author

@FinesseStudioLab this resolves #10 and is ready for review.

@joelpeace48-cell joelpeace48-cell merged commit 3056573 into FinesseStudioLab:main Mar 25, 2026
1 of 2 checks 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.

Add unit tests for rewards contract edge cases

2 participants