You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incorrect Modifier Logic (electionStarted)
Issue: The electionStarted modifier aims to confirm that the election has begun, but its logic is flawed at
Code: Open code in github:
if (block.timestamp> electionInfo.startTime) revertElectionInactive();
Correction: This should verify if the current time is prior to the start time.
Additionally, we can remove the Unused Candidate ID (Candidate Struct) at:
Code: Open code in github:
uint candidateID; // remove candidateId its not needed
The text was updated successfully, but these errors were encountered:
Incorrect Modifier Logic (electionStarted)
Issue: The electionStarted modifier aims to confirm that the election has begun, but its logic is flawed at
Code: Open code in github:
Correction: This should verify if the current time is prior to the start time.
Additionally, we can remove the Unused Candidate ID (Candidate Struct) at:
Code: Open code in github:
The text was updated successfully, but these errors were encountered: