-
Notifications
You must be signed in to change notification settings - Fork 798
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-migrations to use umbrella crate #7209
base: master
Are you sure you want to change the base?
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.
merge master
into this branch and then remove duplicate imports (like BoundedVec
)
@@ -13,22 +13,16 @@ targets = ["x86_64-unknown-linux-gnu"] | |||
[dependencies] | |||
cfg-if = { workspace = true } | |||
codec = { features = ["derive"], workspace = true } | |||
frame = { workspace = true, features = ["experimental", "runtime"]} |
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.
frame = { workspace = true, features = ["experimental", "runtime"]} | |
frame = { workspace = true, features = ["runtime"]} |
use sp_runtime::BoundedVec; | ||
use frame::testing_prelude::*; | ||
use frame::deps::sp_core::ConstU32; | ||
use frame::deps::sp_runtime::BoundedVec; |
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.
BoundedVec
is already in the main prelude and ConstU32
is already in the runtime prelude, so they are both imported in the testing prelude. You can remove these imports.
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.
They're still there
@@ -46,7 +46,8 @@ | |||
#![allow(unused_imports)] | |||
#![allow(missing_docs)] | |||
|
|||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; | |||
// use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; |
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.
Remove comments after making sure everything compiles
Pallet as System, | ||
}; | ||
use sp_runtime::Saturating; | ||
use frame::prelude::*; |
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.
You can remove this, prelude
is already in the testing_prelude
use sp_runtime::BoundedVec; | ||
use frame::testing_prelude::*; | ||
use frame::deps::sp_core::ConstU32; | ||
use frame::deps::sp_runtime::BoundedVec; |
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.
They're still there
Part of #6504
Polkadot Address: 121HJWZtD13GJQPD82oEj3gSeHqsRYm1mFgRALu4L96kfPD1