sergejparity / voteabout

Repository for the VoteAbout project. BUIDL Camp - Cohort 2
MIT License
0 stars 2 forks source link

Make `add_candidate()` function private as it should be called from `create_vote()` #21

Open sergejparity opened 13 hours ago

sergejparity commented 13 hours ago

Make add_candidate() function private as it should be called from create_vote()

IDEA: add_candidate() function should only be used during creation of a new vote, so it would be great to make in internal, and call from within create_vote().

Or another approach could be taken. Incorporate logic of add_candidates into create_vote().