Description
The operator rotation contract module has no tests. contracts/soroban/src/operator_rotation.rs is implemented but has no corresponding test file in contracts/soroban/tests/, so operator rotation handover logic is untested.
Requirements and context
- Add an
operator_rotation.test.rs covering rotation flows
- Cover initiate, confirm, and unauthorized rotation
- Run under
cargo test
- Follow the existing contract test conventions
Suggested execution
Fork the repo and create a branch
git checkout -b test/contract-operator-rotation
Implement changes
- Add the operator rotation test module
- Cover happy paths and rejection cases
- Verify with
cargo test
Example commit message
test: add tests for operator rotation contract module
Guidelines
- Assignment required before starting
- PR must include a closing reference to this issue
- Timeframe: 72 hours
Description
The operator rotation contract module has no tests.
contracts/soroban/src/operator_rotation.rsis implemented but has no corresponding test file incontracts/soroban/tests/, so operator rotation handover logic is untested.Requirements and context
operator_rotation.test.rscovering rotation flowscargo testSuggested execution
Fork the repo and create a branch
Implement changes
cargo testExample commit message
test: add tests for operator rotation contract moduleGuidelines