diff --git a/Cargo.lock b/Cargo.lock index 32af37eb983d..199b84ca2f3d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11866,6 +11866,7 @@ dependencies = [ "parity-scale-codec", "polkadot-sdk-frame 0.1.0", "scale-info", + "sp-crypto-hashing 0.1.0", ] [[package]] diff --git a/substrate/frame/alliance/Cargo.toml b/substrate/frame/alliance/Cargo.toml index a746df298ac2..444d05351044 100644 --- a/substrate/frame/alliance/Cargo.toml +++ b/substrate/frame/alliance/Cargo.toml @@ -17,12 +17,12 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] array-bytes = { optional = true, workspace = true, default-features = true } -log = { workspace = true } codec = { features = ["derive"], workspace = true } -scale-info = { features = ["derive"], workspace = true } frame = { workspace = true, features = ["experimental", "runtime"] } +log = { workspace = true } pallet-collective = { optional = true, workspace = true } pallet-identity = { workspace = true } +scale-info = { features = ["derive"], workspace = true } [dev-dependencies] array-bytes = { workspace = true, default-features = true } diff --git a/substrate/frame/src/lib.rs b/substrate/frame/src/lib.rs index 7b13a5b00400..8ef5d0888874 100644 --- a/substrate/frame/src/lib.rs +++ b/substrate/frame/src/lib.rs @@ -204,9 +204,12 @@ pub mod prelude { #[doc(no_inline)] pub use frame_support::dispatch::{GetDispatchInfo, PostDispatchInfo}; pub use frame_support::{ - defensive, defensive_assert, - traits::{ - Contains, EitherOf, IsSubType, EstimateNextSessionRotation, OnRuntimeUpgrade, UnfilteredDispatchable, MapSuccess, NoOpPoll, OnRuntimeUpgrade, OneSessionHandler, RankedMembers, RankedMembersSwapHandler} + defensive, defensive_assert, + traits::{ + Contains, EitherOf, EstimateNextSessionRotation, IsSubType, MapSuccess, NoOpPoll, + OnRuntimeUpgrade, OneSessionHandler, RankedMembers, RankedMembersSwapHandler, + UnfilteredDispatchable, + }, }; /// Pallet prelude of `frame-system`. @@ -230,9 +233,6 @@ pub mod prelude { /// All account related things. pub use super::account::*; - /// All arithmetic types and traits used for safe math. - pub use super::arithmetic::*; - /// Runtime traits #[doc(no_inline)] pub use sp_runtime::traits::{ @@ -246,8 +246,8 @@ pub mod prelude { /// Other error/result types for runtime #[doc(no_inline)] pub use sp_runtime::{ - DispatchError, - BoundToRuntimeAppPublic, DispatchErrorWithPostInfo, DispatchResultWithInfo, TokenError, + BoundToRuntimeAppPublic, DispatchError, DispatchErrorWithPostInfo, DispatchResultWithInfo, + TokenError, }; }