Skip to content

Commit

Permalink
impl FromEntropy for U256
Browse files Browse the repository at this point in the history
  • Loading branch information
muharem committed Nov 5, 2024
1 parent 56dd130 commit d5f848f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions substrate/primitives/core/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

//! Cryptographic utilities.
use crate::{ed25519, sr25519};
use crate::{ed25519, sr25519, U256};
use alloc::{format, str, vec::Vec};
#[cfg(all(not(feature = "std"), feature = "serde"))]
use alloc::{string::String, vec};
Expand Down Expand Up @@ -1191,7 +1191,7 @@ macro_rules! impl_from_entropy_base {
}
}

impl_from_entropy_base!(u8, u16, u32, u64, u128, i8, i16, i32, i64, i128);
impl_from_entropy_base!(u8, u16, u32, u64, u128, i8, i16, i32, i64, i128, U256);

#[cfg(test)]
mod tests {
Expand Down

0 comments on commit d5f848f

Please sign in to comment.