Skip to content

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

@csillag

Description

@csillag

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions