Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It would be nice to be able to provide info about our existing vote #61

Open
csillag opened this issue Oct 1, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@csillag
Copy link
Collaborator

csillag commented Oct 1, 2024

Currently, when I open an active poll, there is no way to find out whether or not a vote has already been caste with the same wallet. Even when we cast a vote, there is no way to now if this is counted as a new vote, or does this overwrite a previous vote.

I could imagine that we have a button, saying "check my vote", which would bring up metamask, and send a signed TX to the contract, to get back the existing vote, if any, and then we could indicate this info to the UI.

In theory, we could also store this info in browser localstore when casting the vote, but then again, the same user might open the same poll from another device, or maybe there are multiple legitimate representatives of the same entity (with a common wallet, with one vote) which open the same poll independently, so using local store would not be a full solution. The correct solution would be to request this info from a token.

Obviously this would have to be a signed operation, so there is some friction, it can not happen automatically in the background, so I would not trigger this automatically when loading a poll, just when the user requests it.

@csillag csillag added the enhancement New feature or request label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant