Skip to content

test: add tests for maximum i128 stake handling (#404)#474

Merged
Yunusabdul38 merged 2 commits intoWeb3Novalabs:mainfrom
ayomideadeniran:issue-404-max-i128-stake-test
Mar 27, 2026
Merged

test: add tests for maximum i128 stake handling (#404)#474
Yunusabdul38 merged 2 commits intoWeb3Novalabs:mainfrom
ayomideadeniran:issue-404-max-i128-stake-test

Conversation

@ayomideadeniran
Copy link
Copy Markdown
Contributor

  • Add test_place_prediction_with_maximum_i128_stake to verify contract handles i128::MAX
  • Add test_place_prediction_with_large_but_valid_stake for large stakes near i128::MAX/2
  • Add test_place_prediction_overflow_detection to verify overflow protection when total_stake exceeds i128::MAX
  • All tests verify that the contract either succeeds or returns clear errors without panicking unexpectedly

Fixes #404

- Add test_place_prediction_with_maximum_i128_stake to verify contract handles i128::MAX
- Add test_place_prediction_with_large_but_valid_stake for large stakes near i128::MAX/2
- Add test_place_prediction_overflow_detection to verify overflow protection when total_stake exceeds i128::MAX
- All tests verify that the contract either succeeds or returns clear errors without panicking unexpectedly

Fixes Web3Novalabs#404
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

Someone is attempting to deploy a commit to the shola'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 27, 2026

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

@Yunusabdul38 Yunusabdul38 merged commit d4569a8 into Web3Novalabs:main Mar 27, 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.

Test place_prediction with maximum possible i128 stake

2 participants