Summary of Bug
The Governance API for votes on a proposal (/gov/proposals/:id/votes) returns null instead of the Votes that were associated with the proposal after the voting period closes.
This is unexpected.
It would be expected that the voting period has no effect on the JSON payload returned by a call to /gov/proposals/:id/votes, and that the call reliably returns the votes cast against a proposal whenever it is called.
Steps to Reproduce
- Create a Proposal
- Make a Vote against a Proposal
- Call the Governance API to retrieve the Votes against a Proposal, see that you get a valid JSON payload as a response.
- Wait for the Voting period to close.
- Make the same call you made in step 3, except this time you will receive
null as a response.
For Admin Use