Skip to content

Commit

Permalink
Update substrate/frame/contracts/src/benchmarking/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: PG Herveou <pgherveou@gmail.com>
  • Loading branch information
smiasojed and pgherveou authored Jul 17, 2024
1 parent 7f378ae commit 2259be8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions substrate/frame/contracts/src/benchmarking/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
}
Expand Down

0 comments on commit 2259be8

Please sign in to comment.