From 9b55c3293d3c8df7e05a5663b130f322754465fd Mon Sep 17 00:00:00 2001 From: FereMouSiopi Date: Sat, 4 Jan 2025 21:02:35 +0100 Subject: [PATCH] remove Randomness from prelude --- prdoc/pr_6738.prdoc | 9 --------- .../frame/insecure-randomness-collective-flip/src/lib.rs | 2 +- substrate/frame/src/lib.rs | 3 --- 3 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 prdoc/pr_6738.prdoc diff --git a/prdoc/pr_6738.prdoc b/prdoc/pr_6738.prdoc deleted file mode 100644 index 53ea3725413c..000000000000 --- a/prdoc/pr_6738.prdoc +++ /dev/null @@ -1,9 +0,0 @@ -title: Migrate `pallet-insecure-randomness-collective-flip` to umbrella crate -doc: -- audience: Runtime Dev - description: Part of https://github.com/paritytech/polkadot-sdk/issues/6504 -crates: -- name: pallet-insecure-randomness-collective-flip - bump: minor -- name: polkadot-sdk-frame - bump: minor diff --git a/substrate/frame/insecure-randomness-collective-flip/src/lib.rs b/substrate/frame/insecure-randomness-collective-flip/src/lib.rs index 15fd1485d5cf..0e7e8001d5df 100644 --- a/substrate/frame/insecure-randomness-collective-flip/src/lib.rs +++ b/substrate/frame/insecure-randomness-collective-flip/src/lib.rs @@ -71,7 +71,7 @@ use safe_mix::TripletMix; use codec::Encode; -use frame::prelude::*; +use frame::{prelude::*, traits::Randomness}; const RANDOM_MATERIAL_LEN: u32 = 81; diff --git a/substrate/frame/src/lib.rs b/substrate/frame/src/lib.rs index b69a9d131b56..8031ddf96e6a 100644 --- a/substrate/frame/src/lib.rs +++ b/substrate/frame/src/lib.rs @@ -226,9 +226,6 @@ pub mod prelude { /// Other error/result types for runtime #[doc(no_inline)] pub use sp_runtime::{DispatchErrorWithPostInfo, DispatchResultWithInfo, TokenError}; - - /// Provide randomness to your runtime. - pub use frame_support::traits::Randomness; } #[cfg(any(feature = "try-runtime", test))]