Summary of Bug
The Governance API for deposits on a proposal (/gov/proposals/:id/deposits) returns null instead of the deposits 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/deposits, and that the call reliably returns the deposits cast against a proposal whenever it is called.
This may be related to #2879.
Steps to Reproduce
- Create a Proposal
- Make a Vote against a Proposal
- Call the Governance API to retrieve the deposits 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