Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cchudant authored and akhercha committed Aug 28, 2024
1 parent 9e21c0b commit 224cd27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/client/block_import/src/pre_validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ fn transaction_commitment(block: &UnverifiedFullBlock, validation: &Validation)
compute_merkle_root::<Poseidon>(&tx_hashes_with_signature)
};

if let Some(expected) = block.commitments.transaction_commitment.filter(|expected| expected != got) {
if let Some(expected) = block.commitments.transaction_commitment.filter(|&expected| expected != got) {
return Err(BlockImportError::TransactionCommitment { got, expected });
}

Expand Down

0 comments on commit 224cd27

Please sign in to comment.