From f926893508e7b9809d93c233e9cb530b700a0da3 Mon Sep 17 00:00:00 2001 From: NachoPal Date: Tue, 23 May 2023 12:30:08 +0200 Subject: [PATCH] twox_256 clean --- frame/glutton/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frame/glutton/src/lib.rs b/frame/glutton/src/lib.rs index 19454c88e8841..964897cc4316c 100644 --- a/frame/glutton/src/lib.rs +++ b/frame/glutton/src/lib.rs @@ -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); }