Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
babe: remove randomness helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
andresilva committed Jul 22, 2019
1 parent e3f0c8e commit fb09ef0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion core/test-runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ cfg_if! {
assert!(!authorities.is_empty(), "no authorities!");
consensus_babe::Epoch {
authorities,
randomness: srml_babe::randomness::<Runtime>(),
randomness: <srml_babe::Module<Runtime>>::randomness(),
epoch_index: 1,
duration: 20,
}
Expand Down
4 changes: 0 additions & 4 deletions srml/babe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,6 @@ decl_storage! {
}
}

pub fn randomness<T: Trait>() -> [u8; RANDOMNESS_LENGTH] {
<Module<T> as Store>::Randomness::get()
}

decl_module! {
/// The BABE SRML module
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
Expand Down

0 comments on commit fb09ef0

Please sign in to comment.