Skip to content

Fix issues #170 #174 #209 #212 (assigned)#1

Open
codeX-james wants to merge 3 commits into
mainfrom
fix/assigned-issues-170-174-209-212
Open

Fix issues #170 #174 #209 #212 (assigned)#1
codeX-james wants to merge 3 commits into
mainfrom
fix/assigned-issues-170-174-209-212

Conversation

@codeX-james

Copy link
Copy Markdown
Owner

Summary

  • replace single-step update_admin with a safe two-step flow (initiate_admin_transfer, accept_admin_transfer, cancel_admin_transfer) backed by PendingAdmin storage
  • clear stale RevenueClaimed state on claim_refund by removing the persistent key, and add regression coverage for refund cleanup behavior
  • add tests for repeated deposit_revenue accumulation/event emission and for vote_on_campaign rejection after deadline and after funds withdrawal

Test plan

  • cargo test --quiet

Linked upstream issues

Made with Cursor

…s, and revenue deposits.

This switches admin updates to a two-step transfer to prevent accidental lockout, clears stale revenue-claimed state on refunds, and adds coverage for deadline/withdrawn vote gating plus repeated revenue deposits.

Made-with: Cursor
This applies rustfmt output so the build-and-test workflow passes cargo fmt --check on the PR branch.

Made-with: Cursor
This aligns the four newly added tests with the upstream create_campaign signature used in CI.

Made-with: Cursor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants