Skip to content

test: add test for adminauthorization boundaries#433

Merged
hman38705 merged 1 commit intosolutions-plug:mainfrom
Fayvor22:test-admin-boundaries
Mar 30, 2026
Merged

test: add test for adminauthorization boundaries#433
hman38705 merged 1 commit intosolutions-plug:mainfrom
Fayvor22:test-admin-boundaries

Conversation

@Fayvor22
Copy link
Copy Markdown
Contributor

@Fayvor22 Fayvor22 commented Mar 30, 2026

Implementation Summary

Negative tests for all admin-only config setters have been added to contracts/predict-iq/src/test.rs. These tests assert that non-admin calls to privileged setters (like set_max_push_payout_winners, set_creation_deposit, set_base_fee, set_fee_admin, set_dispute_window, set_minimum_bet_amount, set_creator_reputation, set_guardian, set_governance_token) all fail with the expected NotAuthorized error.

Closes #270

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

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

@hman38705 hman38705 merged commit 74fa588 into solutions-plug:main Mar 30, 2026
2 of 13 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 tests for admin auth boundaries on sensitive setters

2 participants