diff --git a/src/state.rs b/src/state.rs index 03978fc4e..fd54db318 100644 --- a/src/state.rs +++ b/src/state.rs @@ -221,6 +221,12 @@ impl State { } } +impl Clone for State { + fn clone(&self) -> Self { + State::from_existing(self.db.clone(), self.root.clone(), self.account_start_nonce.clone()) + } +} + #[cfg(test)] mod tests {