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

Treasury Page No Longer Available #11031

Closed
TarikGul opened this issue Oct 23, 2024 · 3 comments
Closed

Treasury Page No Longer Available #11031

TarikGul opened this issue Oct 23, 2024 · 3 comments
Assignees

Comments

@TarikGul
Copy link
Member

Currently with the most recent calls that have been removed from runtime 1003003 (ex: tx.treasury.proposeSend), it has caused the treasury page from no longer being available since app routing requires the above example tx.

In addition to that, there is a weird issue currently where when I get the page up and running again, it fails to persist the data it originally gets. For example, it will get all the proposals and render them correctly, but on the next subscribed call it makes it gets back no data, and empties the page of all proposals. I can't narrow down the issue exactly just yet, but it feels like to me it somehow is hitting: https://github.com/polkadot-js/api/blob/master/packages/api-derive/src/treasury/proposals.ts#L97-L101

That being said, const totalProposals = useCall<BN>(api.query.treasury.proposalCount); is also returning zero which is incorrect.

@TarikGul
Copy link
Member Author

Completed via #11032

@sesh92
Copy link
Contributor

sesh92 commented Oct 29, 2024

@TarikGul

This change breaks chains that do not have treasury pallet.

https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fexplorer-rpc-ws.mainnet.stages.humanode.io#/treasury

image

@polkadot-js-bot
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators Nov 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants