test(contracts): verify record_withdrawal fails while paused and set_operator rejects same-address rotation
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 80/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- blockchain, testing
Research direction
Start with contracts/anchor_vault/src/test.rs and inspect the existing tests for record_withdrawal and set_operator; check contracts/anchor_vault/src/lib.rs if the same-address case exposes a missing guard. Add assertions for failure while paused, success after unpause(), and rejection of rotation to the active operator. Run cd contracts && cargo test --verbose and confirm it passes.
Written by the indexing model from the issue text.
Description
Summary
Expand anchor_vault Soroban unit test coverage to verify that record_withdrawal fails when the contract is paused and that set_operator rejects rotation to the current operator address.
Files
contracts/anchor_vault/src/test.rscontracts/anchor_vault/src/lib.rs(if same-address guard is needed)
Acceptance Criteria
- Test asserts
record_withdrawalfails while paused and succeeds afterunpause(). - Test asserts
set_operatorrejects rotating to the already-active operator address. cd contracts && cargo test --verbosepasses cleanly.
- Dominant language
- Python
- Stars
- 0
- Forks
- 1
- Avg merge
- 19h 43m
- Merged PRs (30d)
- 5
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sepbox-dev/sepbox
-
complexity: trivial engine good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
sepbox-dev/sepbox#19 ·
-
complexity: trivial good first issue inspector
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sepbox-dev/sepbox#17 ·
-
complexity: medium engine
Difficulty 4/5 3-5 days Newbie friendliness 52/100
sepbox-dev/sepbox#13 ·
-
complexity: medium engine
Difficulty 3/5 1-2 days Newbie friendliness 76/100
sepbox-dev/sepbox#12 ·
-
feat(engine): add Prometheus /metrics endpoint for HTTP requests, chaos faults, and SEP-24 statesOpencomplexity: medium engine
Difficulty 4/5 3-5 days Newbie friendliness 58/100
sepbox-dev/sepbox#11 ·
All issues in sepbox-dev/sepbox
Similar issues
-
docs(contributing): the two things that silently block a PRPossibly taken A pull request linked to this issue is open or already merged. Openavailable documentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
Nixitov/Riptide-Native#944 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
JTHCode/secretguard#24 ·
Maintainers usually reply within 1 day
-
area: middleware documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
omarelshamy25x/shamy-hijri#63 ·
Maintainers usually reply within 1 day