feat : remove organization #59
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Organization Removal Functionality
Description
This PR adds the ability to remove organizations from the BudgetChain contract. The implementation includes a new function
remove_organizationthat allows admins to deactivate organizations by setting theiris_activestatus to false.Changes
remove_organizationfunction to the Budget contractKey Features
Testing
Added three test cases to verify the functionality:
test_remove_organization_success: Verifies successful organization removal by admintest_remove_organization_not_admin: Ensures only admin can remove organizationstest_remove_organization_event_emission: Validates correct event emissionTechnical Details
remove_organizationfunctionSecurity Considerations
Related Issues
Closes #52
Checklist