diff --git a/crates/trie/parallel/benches/root.rs b/crates/trie/parallel/benches/root.rs index 8361fdc20546..744683b9a586 100644 --- a/crates/trie/parallel/benches/root.rs +++ b/crates/trie/parallel/benches/root.rs @@ -83,7 +83,7 @@ pub fn calculate_state_root(c: &mut Criterion) { blocking_pool.clone(), Default::default(), updated_state.clone(), - updated_state.construct_prefix_sets(), + updated_state.construct_prefix_sets().freeze(), ) }, |calculator| calculator.incremental_root(), diff --git a/crates/trie/parallel/src/async_root.rs b/crates/trie/parallel/src/async_root.rs index ead10e600105..600a3b9a2b96 100644 --- a/crates/trie/parallel/src/async_root.rs +++ b/crates/trie/parallel/src/async_root.rs @@ -343,7 +343,7 @@ mod tests { } } - let prefix_sets = hashed_state.construct_prefix_sets(); + let prefix_sets = hashed_state.construct_prefix_sets().freeze(); assert_eq!( AsyncStateRoot::new( consistent_view.clone(),