fix: require governance group market id#441
Conversation
|
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
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
…e-4cbd-8446-06739d060ac0) Trace: 4fab9e0
366419d to
08e51c6
Compare
|
fixed on #457 |
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