https://github.com/Cyfrin/2024-09-president-elector/blob/main/src/RankedChoice.sol#L23
The TYPEHASH variable is defined as the hash of the RankedChoice::rankCandidates function selector. However, in TYPEHASH, the parameter is incorrectly defined as uint256[], while in the RankedChoice::rankCandidates function, the parameter is actually address[].
When looking at the RankedChoice::rankCandidates function, a voter might sign a hashed message with a different function selector (keccak256("rankCandidates(address[])")), which could block them from voting in the election.
Update TYPEHASH to the correct value:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.