From 6c1833de315eb9012a9581747cc309d0456afdca Mon Sep 17 00:00:00 2001 From: malik Date: Tue, 12 Nov 2024 12:48:39 +0100 Subject: [PATCH] chore: remove unessarcy clone (#12463) --- crates/chain-state/src/in_memory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/chain-state/src/in_memory.rs b/crates/chain-state/src/in_memory.rs index bfae8113e3eb..8794bb393ca8 100644 --- a/crates/chain-state/src/in_memory.rs +++ b/crates/chain-state/src/in_memory.rs @@ -269,7 +269,7 @@ impl CanonicalInMemoryState { // insert the new blocks for block in new_blocks { let parent = blocks.get(&block.block().parent_hash).cloned(); - let block_state = BlockState::with_parent(block.clone(), parent); + let block_state = BlockState::with_parent(block, parent); let hash = block_state.hash(); let number = block_state.number();