From 2259be8cd398300675f89320d97b5e00c86fc22c Mon Sep 17 00:00:00 2001 From: Sebastian Miasojed Date: Wed, 17 Jul 2024 15:33:05 +0200 Subject: [PATCH] Update substrate/frame/contracts/src/benchmarking/mod.rs Co-authored-by: PG Herveou --- substrate/frame/contracts/src/benchmarking/mod.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/substrate/frame/contracts/src/benchmarking/mod.rs b/substrate/frame/contracts/src/benchmarking/mod.rs index cea6886f7a17..02791bb8543f 100644 --- a/substrate/frame/contracts/src/benchmarking/mod.rs +++ b/substrate/frame/contracts/src/benchmarking/mod.rs @@ -173,11 +173,7 @@ where let pos = l as usize / 2; let mut key = vec![0u8; key_size as usize]; for i in 0u8..16 { - if l % 2 == 0 { - key[pos] = i - } else { - key[pos] = i << 4; - } + key[pos] = if l % 2 == 0 { i } else { i << 4 }; child::put_raw(&child_trie_info, &key, &vec![42u8; value_size as usize]); } }