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

Migrate pallet-tips to umbrella crate #6532

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

Conversation

bennethxyz
Copy link

@bennethxyz bennethxyz commented Nov 18, 2024

part of #6504

Description

Modifying pallet-tips to use polkadot-frame-sdk re-exports and adding a few I think relevant for other pallets.

Review Notes

  • runtime::prelude now includes PalletId, I saw many other pallets use this in mock environments to distinguish instances of the same pallet and also identifiers for XCM.

  • Added ensure to top level prelude as it is also used in mock runtimes and other files across FRAME.

polkadot address: 15rM9idTv1izwNFqPabfcT4jkqHDsEvHSa5fASAUZwZcS4Yw

@cla-bot-2021
Copy link

cla-bot-2021 bot commented Nov 18, 2024

User @bennethxyz, please sign the CLA here.

@bennethxyz bennethxyz marked this pull request as ready for review December 5, 2024 20:19
@bennethxyz bennethxyz requested a review from a team as a code owner December 5, 2024 20:19
@bennethxyz
Copy link
Author

@kianenigma @re-gius please review

@re-gius re-gius added R0-silent Changes should not be mentioned in any release notes T1-FRAME This PR/Issue is related to core FRAME, the framework. labels Dec 9, 2024
@bennethxyz
Copy link
Author

please review @re-gius

substrate/frame/src/lib.rs Outdated Show resolved Hide resolved
@paritytech-review-bot paritytech-review-bot bot requested a review from a team January 4, 2025 10:26
@bennethxyz
Copy link
Author

please review @re-gius

pub use frame_support::PalletId;

/// Runtime storage traits amd types.
pub use frame_support::storage::{migration::*, KeyPrefixIterator, StoragePrefixedMap};
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pub use frame_support::storage::{migration::*, KeyPrefixIterator, StoragePrefixedMap};
pub use frame_support::storage::{KeyPrefixIterator, StoragePrefixedMap};

I don't see why migration items should be in this prelude

@@ -235,7 +239,9 @@ pub mod prelude {
/// Other runtime types and traits
#[doc(no_inline)]
pub use sp_runtime::{
BoundToRuntimeAppPublic, DispatchErrorWithPostInfo, DispatchResultWithInfo, TokenError,
BoundToRuntimeAppPublic,
DispatchError::{self, BadOrigin},
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
DispatchError::{self, BadOrigin},
DispatchError,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T1-FRAME This PR/Issue is related to core FRAME, the framework.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants