fix: require governance group market id#441
Draft
carrion256 wants to merge 1 commit into
Draft
Conversation
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
4fab9e0 to
366419d
Compare
Collaborator
Author
|
@coderabbitai review |
Contributor
✅ Actions performedReview triggered.
|
…e-4cbd-8446-06739d060ac0) Trace: 4fab9e0
366419d to
08e51c6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixed Findings
e019c107-ebbe-4cbd-8446-06739d060ac0Summary
market_idforSetGovernancePolicygroup-membership commands (mode == 2).market_id.market_idnow returnsContractError::InvalidInputand does not silently update market0.RED Evidence
Before the fix, the focused regression failed because a group-membership payload with
market_id: NonereturnedOk(()):Verification
cargo test -p templar-soroban-runtime test_execute_governance_group_membership_requires_market_id -- --nocapturecargo test -p templar-soroban-runtime --lib -- --nocapture(104 passed)cargo fmt --checkgit diff --checkcargo test -p templar-soroban-runtime -- --nocapturejust -f contract/vault/soroban/justfile buildjust -f contract/vault/soroban/justfile size-budget-check(93946 <= 131072bytes)Stack / Base
spr/refactor/vault-ergonomics/4f330057audit/governance-abi-validation-a062This change is