Skip to content

Added Voting Mechanism for Campaigns #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

gidson5
Copy link

@gidson5 gidson5 commented Mar 26, 2025

Implemented the vote_project function to allow donors to vote for campaigns.

Ensured only donors (users who have made a donation) can vote.

Tracked votes using donor_votes and updated campaign_votes_count accordingly.

Emitted a DonorVoted event to log each vote.

Included checks to prevent non-donors from voting and to validate donor participation.

@mubarak23
Copy link
Collaborator

mubarak23 commented Mar 26, 2025

@gidson5 point your PR to pool_campaign branch

@gidson5 gidson5 changed the base branch from main to pool_campaign March 26, 2025 13:29
@gidson5
Copy link
Author

gidson5 commented Mar 26, 2025

Done

@mubarak23
Copy link
Collaborator

but you need to fix the merge conflict.

@mubarak23 mubarak23 self-requested a review March 26, 2025 14:53
@mubarak23 mubarak23 closed this Mar 27, 2025
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