From d67b892070b90aef2cc66295c746043080e77a34 Mon Sep 17 00:00:00 2001 From: Joseph Knecht <83087510+JosephKnecht-lab@users.noreply.github.com> Date: Tue, 2 Jul 2024 15:21:03 +0200 Subject: [PATCH] fix warnings --- jam/src/block.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jam/src/block.rs b/jam/src/block.rs index cce48d0..66350c8 100644 --- a/jam/src/block.rs +++ b/jam/src/block.rs @@ -36,7 +36,7 @@ impl Block { block } - fn calculate_state_root(transactions: &Vec) -> String { + fn calculate_state_root(transactions: &[Transaction]) -> String { // Placeholder implementation, should calculate the state root based on the transactions let state_data: String = transactions.iter().map(|tx| tx.tx_hash.clone()).collect(); sha256(&state_data)