Skip to content

Commit

Permalink
prelude all
Browse files Browse the repository at this point in the history
  • Loading branch information
FereMouSiopi committed Dec 12, 2024
1 parent 37439a2 commit d09e8b4
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 59 deletions.
90 changes: 48 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 3 additions & 17 deletions substrate/frame/insecure-randomness-collective-flip/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,8 @@
use safe_mix::TripletMix;

use codec::Encode;
/*
use frame_support::{pallet_prelude::Weight, traits::Randomness};
use frame_system::pallet_prelude::BlockNumberFor;
use sp_runtime::traits::{Hash, Saturating};
*/
use frame::{
prelude::*,
traits::{Hash, Randomness, Saturating},
};
use frame::prelude::*;

const RANDOM_MATERIAL_LEN: u32 = 81;

fn block_number_to_index<T: Config>(block_number: BlockNumberFor<T>) -> usize {
Expand Down Expand Up @@ -170,14 +163,7 @@ impl<T: Config> Randomness<T::Hash, BlockNumberFor<T>> for Pallet<T> {
mod tests {
use super::*;
use crate as pallet_insecure_randomness_collective_flip;
use frame::{
runtime::{
prelude::{construct_runtime, derive_impl, parameter_types},
testing_prelude::BuildStorage,
},
testing_prelude::frame_system::limits,
traits::{Header, Randomness},
};
use frame::testing_prelude::*;

/*
use sp_core::H256;
Expand Down
Loading

0 comments on commit d09e8b4

Please sign in to comment.