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-migrations to use umbrella crate #7209

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

Conversation

Nathy-bajo
Copy link

Part of #6504

Polkadot Address: 121HJWZtD13GJQPD82oEj3gSeHqsRYm1mFgRALu4L96kfPD1

@Nathy-bajo Nathy-bajo requested a review from a team as a code owner January 16, 2025 21:01
@re-gius re-gius added R0-silent Changes should not be mentioned in any release notes T2-pallets This PR/Issue is related to a particular pallet. labels Jan 23, 2025
Copy link
Contributor

@re-gius re-gius left a 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"]}
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
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;
Copy link
Contributor

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.

Copy link
Contributor

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}};
Copy link
Contributor

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

@paritytech-review-bot paritytech-review-bot bot requested a review from a team January 23, 2025 21:42
@Nathy-bajo Nathy-bajo requested a review from re-gius January 26, 2025 22:57
Pallet as System,
};
use sp_runtime::Saturating;
use frame::prelude::*;
Copy link
Contributor

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;
Copy link
Contributor

Choose a reason for hiding this comment

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

They're still there

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 T2-pallets This PR/Issue is related to a particular pallet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants