-
Notifications
You must be signed in to change notification settings - Fork 45
fix: remove check for group non unilateral member power #2519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis pull request removes the non-unilateral member power validation from the group data contract. The change eliminates the associated error type and its handling across several modules. Adjustments include deleting the check within the validation method, removing the custom error struct, updating the error enum and its error code mapping, and deleting a test that verified this specific condition. Additionally, the conversion for this error in the JavaScript error representation (WASM layer) has been removed. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Validator as GroupV0.validate
User->>Validator: Call validate()
Note right of Validator: Non-unilateral power check removed
Validator->>Validator: Validate total power and individual member limits
Validator-->>User: Return validation result
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (19)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Issue being fixed or feature implemented
The validation for group member powers seemed to be wrong. We were validating that the collective power of a group's non-unilateral members was at least the group's required power. However, this check was unnecessary and prevented certain group configurations, for example a group with 3 members all of whom's powers equal the groups' required power.
What was done?
Remove the check and the error altogether.
How Has This Been Tested?
DET
Breaking Changes
Checklist:
For repository code-owners and collaborators only
Summary by CodeRabbit
Refactor
Tests
Bug Fixes