Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stojanov-igor committed Jul 2, 2024
1 parent ba48f9b commit d67b892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jam/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl Block {
block
}

fn calculate_state_root(transactions: &Vec<Transaction>) -> 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)
Expand Down

0 comments on commit d67b892

Please sign in to comment.