Skip to content

api.derive.democracy.referendumVotes is not a function #2085

@vikiival

Description

@vikiival

Hello,

I face a problem with fetching votes for selected referendum from api.
According to implementation I need to just call api.derive.democracy.referendumVotes(index)
unfortunately this method doesn't work on api@1.8.1

If I want to use old approach with api.derive.democracy.referendumVotesFor(index)
I got another error:

DRR: TypeError: "api.query.democracy.votersFor is not a function"

Used chain: Kusama CC3

Thanks 🚀

Metadata

Metadata

Assignees

No one assigned

    Labels

    SupportTracks issues or requests related to troubleshooting, answering questions, and user assistance.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions