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

Commit

Permalink
twox_256 clean
Browse files Browse the repository at this point in the history
  • Loading branch information
NachoPal committed May 23, 2023
1 parent 4f9d468 commit f926893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frame/glutton/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ pub mod pallet {
let mut ret = [0u8; VALUE_SIZE];

for i in 0u32..(VALUE_SIZE as u32 / 32) {
let hash = (seed, i).using_encoded(|p| twox_256(p));
let hash = (seed, i).using_encoded(twox_256);
ret[i as usize * 32..(i + 1) as usize * 32].copy_from_slice(&hash);
}

Expand Down

0 comments on commit f926893

Please sign in to comment.