Skip to content

feat: Implement cancel_campaign in CampaignManagement contract logic#16

Merged
0xdevcollins merged 1 commit intoboundlessfi:developfrom
David-patrick-chuks:fix-13-implement-cancel-campaign-in-campaignmanagement-contract-logic
Oct 2, 2025
Merged

feat: Implement cancel_campaign in CampaignManagement contract logic#16
0xdevcollins merged 1 commit intoboundlessfi:developfrom
David-patrick-chuks:fix-13-implement-cancel-campaign-in-campaignmanagement-contract-logic

Conversation

@David-patrick-chuks
Copy link
Contributor

@David-patrick-chuks David-patrick-chuks commented Oct 1, 2025

Implemented cancel_campaign in CampaignManagement for BoundlessContract.
• Added admin authorization check.
• Retrieved and updated campaign status to Failed.
• Saved updated campaign to storage.
• Emitted cancellation event.
• Added error handling for unauthorized admin and missing campaign.
• Covered functionality with tests.

… Add complete cancel_campaign implementation with admin authorization- Implement campaign retrieval, status validation, and storage updates- Add event emission for campaign cancellation- Include comprehensive error handling for all scenarios- Add 6 comprehensive test cases covering success and failure scenarios- Fix storage access issues in tests using env.as_contract()- Resolve Symbol creation errors and syntax issuesCloses boundlessfi#13
@David-patrick-chuks David-patrick-chuks deleted the fix-13-implement-cancel-campaign-in-campaignmanagement-contract-logic branch October 1, 2025 12:55
@David-patrick-chuks David-patrick-chuks restored the fix-13-implement-cancel-campaign-in-campaignmanagement-contract-logic branch October 1, 2025 12:59
@0xdevcollins 0xdevcollins linked an issue Oct 2, 2025 that may be closed by this pull request
@0xdevcollins 0xdevcollins merged commit aabbed2 into boundlessfi:develop Oct 2, 2025
4 of 7 checks passed
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.

Implement cancel_campaign in CampaignManagement contract logic

2 participants