-
Notifications
You must be signed in to change notification settings - Fork 406
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
pallet-treasury cleanup #1416
pallet-treasury cleanup #1416
Conversation
Minimum allowed line rate is |
Sorry. I didn't get it. From the code it looks like you removed all API methods from the pallet (please correct me if I'm wrong). Is anything left? What's the purpose of leftovers? Can we just drop the whole pallet? |
I've removed the calls that are part of new treasury API, which we don't use. We cannot drop the whole pallet, it's part of the governance system. |
@Dinonard Sorry I misjudged. I was looking into fully removed interface section from readme and a lot of removed code. So I didn't notice that some methods are left indeed. |
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
Thought I replied to this, but it seems it got lost somewhere. All good! I was also surprised when going over the docs, but I guess they either never had docs for the old API, or removed it when they declared it as deprecated. |
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
Pull Request Summary
Removes unused calls & types from
pallet-treasury
.These calls were incorrectly used in our governance and it's better to remove them (they don't work anyways).
If ever in the future we need these calls, the right action is to delete our fork & use the regular
pallet-treasury
from the polkadot-sdk.