Add voterIds to proposals #22
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "features/add-voterids-to-proposals"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adding a voterIds array to the proposal.
This allows us to check if a user already has voted on a proposal. As this is not directly supported by the default proposals accessor this also adds a getProposal function to get all proposal data.
IMPORTANT: this also changes how proposals are stored. it switches from an array to a mapping with uint keys. that means keys now start with 1 instead of 0.
Generally I have a feeling that mappings are better to store such data and make it easier to clean up in the future - maybe ...
👍