-
Notifications
You must be signed in to change notification settings - Fork 764
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
base: master
Are you sure you want to change the base?
Conversation
User @bennethxyz, please sign the CLA here. |
@kianenigma @re-gius please review |
please review @re-gius |
please review @re-gius |
pub use frame_support::PalletId; | ||
|
||
/// Runtime storage traits amd types. | ||
pub use frame_support::storage::{migration::*, KeyPrefixIterator, StoragePrefixedMap}; |
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.
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}, |
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.
DispatchError::{self, BadOrigin}, | |
DispatchError, |
part of #6504
Description
Modifying
pallet-tips
to usepolkadot-frame-sdk
re-exports and adding a few I think relevant for other pallets.Review Notes
runtime::prelude
now includesPalletId
, 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 levelprelude
as it is also used in mock runtimes and other files acrossFRAME
.polkadot address: 15rM9idTv1izwNFqPabfcT4jkqHDsEvHSa5fASAUZwZcS4Yw