Implemented the logic to delete an voter in the backend (solidity code)
Description
Implementation of logic to delete a candidate . The current code at backend only implements the add candidate functionality but there is no function to enable deletion of a candidate incase he/she doesn't wish to participate or no functionality to enable the organizer delete a candidate. so the existing solidity code base has been modified to implement the fallowing functionality and hence a new function namely withdrawCandidate() has been created also a library to enable gas optimization Fixes # (issue)
Type of change
Please mark the options that are relevant.
-
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 z' modifiers; some more to be added; changed function signatures according to convention