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

Deprecate HandleLifetime Trait and its Implementations in Favor of Direct frame-system Methods #7287

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

tifecool
Copy link

resolves #7063

@tifecool tifecool changed the title Handlelifetime Removal Handlelifetime Removal Jan 22, 2025
@tifecool tifecool changed the title Handlelifetime Removal Deprecate HandleLifetime Trait and its Implementations in Favor of Direct frame-system Methods Jan 22, 2025
@tifecool
Copy link
Author

would like to see the CI run @ggwpez

@tifecool tifecool marked this pull request as ready for review January 22, 2025 09:52
@tifecool tifecool requested a review from a team as a code owner January 22, 2025 09:52
@ggwpez
Copy link
Member

ggwpez commented Feb 2, 2025

No clue why the CI is not running... maybe rebasing helps.

@bkchr
Copy link
Member

bkchr commented Feb 2, 2025

@ggwpez Disable the new merge experience:
image

@paritytech-review-bot paritytech-review-bot bot requested a review from a team February 7, 2025 03:02
@tifecool
Copy link
Author

tifecool commented Feb 7, 2025

please review @ggwpez

For SelfSufficient (from HandleLifetime):
Use frame_system::inc_sufficients(t) for the Created method.
Use frame_system::dec_sufficients(t) for the Killed method.
These changes align with efforts to reduce abstraction overhead and improve the maintainability of the SDK by leveraging direct frame-system APIs for resource management.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
These changes align with efforts to reduce abstraction overhead and improve the maintainability of the SDK by leveraging direct frame-system APIs for resource management.

Sounds AI generated 😋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate frame_system::Consumer
3 participants