Skip to content
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

Fixed Bug: Delete Elections is not guarded by Modifier #35

Conversation

Ronnieraj37
Copy link
Contributor

@Ronnieraj37 Ronnieraj37 commented Mar 23, 2024

Fixes #34

Problems Fixed:

  • Added modifier to check if only the Creator of election deletes it.
  • Removed the additional deleteElection function from elections.sol
  • Changed the front-end code accordingly as it was interacting with election.sol to delete an election

Additional Additions

  • Added .env file
  • Updated the address of the contract as the new contract consists of these changes.

Type of change

  • Updated UI/UX
  • Improved the business logic of code
  • Added new feature
  • Other

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

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.

1 participant