From 65ebec123e34461795b6d8dfd6ccc96c43366a88 Mon Sep 17 00:00:00 2001 From: nadtech-hub Date: Fri, 20 Dec 2024 00:21:31 +0100 Subject: [PATCH] provider factory boxed Signed-off-by: nadtech-hub --- crates/trie/sparse/src/state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/trie/sparse/src/state.rs b/crates/trie/sparse/src/state.rs index 07264cbc728b..d9b8bc53c002 100644 --- a/crates/trie/sparse/src/state.rs +++ b/crates/trie/sparse/src/state.rs @@ -23,7 +23,7 @@ use std::{fmt, iter::Peekable}; /// Sparse state trie representing lazy-loaded Ethereum state trie. pub struct SparseStateTrie { /// Blinded node provider factory. - provider_factory: F, + provider_factory: Box, /// Sparse account trie. state: SparseTrie, /// Sparse storage tries. @@ -72,7 +72,7 @@ impl SparseStateTrie { /// Create new [`SparseStateTrie`] with blinded node provider factory. pub fn new(provider_factory: F) -> Self { Self { - provider_factory, + provider_factory: Box::new(provider_factory), state: Default::default(), storages: Default::default(), revealed: Default::default(),