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 safe mode to umbrella crate #6905

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

Conversation

Krayt78
Copy link
Contributor

@Krayt78 Krayt78 commented Dec 16, 2024

Part of #6504

@Krayt78 Krayt78 marked this pull request as ready for review January 5, 2025 17:39
@Krayt78 Krayt78 requested a review from a team as a code owner January 5, 2025 17:39
@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 6, 2025
substrate/frame/safe-mode/src/lib.rs Outdated Show resolved Hide resolved
substrate/frame/safe-mode/src/mock.rs Outdated Show resolved Hide resolved
@paritytech-review-bot paritytech-review-bot bot requested a review from a team January 6, 2025 11:51
@Krayt78 Krayt78 requested a review from re-gius January 6, 2025 11:52
substrate/frame/safe-mode/src/lib.rs Outdated Show resolved Hide resolved
substrate/frame/safe-mode/src/lib.rs Outdated Show resolved Hide resolved
substrate/frame/safe-mode/src/mock.rs Outdated Show resolved Hide resolved
@paritytech-review-bot paritytech-review-bot bot requested a review from a team January 7, 2025 15:19
@Krayt78 Krayt78 requested a review from re-gius January 7, 2025 16:33
substrate/frame/src/lib.rs Outdated Show resolved Hide resolved
@@ -22,8 +22,7 @@
use super::*;
use crate::mock::{RuntimeCall, *};

use frame_support::{assert_err, assert_noop, assert_ok, hypothetically_ok, traits::Currency};
use sp_runtime::traits::Dispatchable;
use frame::{deps::frame_support::hypothetically_ok, testing_prelude::*, traits::Currency};
Copy link
Contributor

Choose a reason for hiding this comment

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

hypothetically_ok can be reexported in testing_prelude.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the reason i didnt export it is because its only used in 2 crates, is it enough to justify putting it in the prelude ?

@paritytech-review-bot paritytech-review-bot bot requested a review from a team January 26, 2025 06:11
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