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

salary pallet migration to umbrella crate #7025

Closed
wants to merge 3 commits into from

Conversation

seemantaggarwal
Copy link

βœ„ -----------------------------------------------------------------------------

Thank you for your Pull Request! πŸ™ Please make sure it follows the contribution guidelines outlined in this
document
and fill out the
sections below. Once you're ready to submit your PR for review, please delete this section and leave only the text under
the "Description" heading.

Description

Migrating salary pallet to use umbrella crates

Review Notes

This PR migrates pallet-salary to use the umbrella crate.

βœ„ -----------------------------------------------------------------------------

@seemantaggarwal seemantaggarwal requested a review from a team as a code owner January 2, 2025 08:09
@seemantaggarwal seemantaggarwal 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 2, 2025
substrate/frame/salary/src/benchmarking.rs Outdated Show resolved Hide resolved
substrate/frame/salary/src/lib.rs Outdated Show resolved Hide resolved
substrate/frame/salary/src/lib.rs Show resolved Hide resolved
substrate/frame/salary/src/tests/unit.rs Outdated Show resolved Hide resolved
substrate/frame/salary/src/tests/integration.rs Outdated Show resolved Hide resolved
substrate/frame/salary/Cargo.toml Outdated Show resolved Hide resolved
substrate/frame/salary/Cargo.toml Outdated Show resolved Hide resolved
@@ -22,10 +22,9 @@
use super::*;
use crate::Pallet as Salary;

use frame_benchmarking::v2::*;
use frame_system::{Pallet as System, RawOrigin};
use sp_core::Get;
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
use sp_core::Get;
use frame::deps::sp_core::Get;

substrate/frame/salary/Cargo.toml Outdated Show resolved Hide resolved
"frame-benchmarking?/std",
"frame-support/experimental",
"frame-support/std",
"frame-system/std",
"log/std",
"pallet-ranked-collective/std",
"scale-info/std",
"sp-arithmetic/std",
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
"sp-arithmetic/std",

substrate/frame/salary/src/tests/integration.rs Outdated Show resolved Hide resolved
substrate/frame/salary/src/tests/integration.rs Outdated Show resolved Hide resolved
substrate/frame/salary/src/tests/integration.rs Outdated Show resolved Hide resolved
substrate/frame/salary/src/tests/integration.rs Outdated Show resolved Hide resolved
@@ -194,7 +193,7 @@ fn swap_exhaustive_works() {

// The events mess up the storage root:
System::reset_events();
sp_io::storage::root(sp_runtime::StateVersion::V1)
sp_io::storage::root( frame::deps::sp_runtime::StateVersion::V1)
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of using the whole path here, let's import this at the top and then use it.

@paritytech-review-bot paritytech-review-bot bot requested a review from a team January 2, 2025 18:32
@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/12587029273
Failed job name: fmt

@seemantaggarwal
Copy link
Author

Closing this in favour of https://github.com/paritytech/polkadot-sdk/pull/7048/commits

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.

3 participants