-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix: make use of spendLocal
in treasury
#11243
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, so technically speaking this is great. But it doesn't take into account backwards compatibility for chains that use proposeSend
. So there needs to be support for both depending on what is exposed at runtime.
To fix this, We provide If |
Is the call in |
Yes it is. In needsApi: [
'query.treasury.proposals'
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice job!
Hey just a small comment. I did not check, but just FYI as if we only support |
Thanks for the heads up - we'll put in a guard for now that disables the send button if proposeSend and or spendLocal doesn't exist. We'll work on getting support for spend as well. |
📝 Description
This PR aims to make use of
spendLocal
instead ofproposeSpend
as this has been deprecated.