Browse Source

chore: fix typo

next
Bobbin Threadbare 2 months ago
parent
commit
a75dced6e9
No known key found for this signature in database GPG Key ID: 289C444AD87BC941
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/merkle/smt/full/leaf.rs

+ 1
- 1
src/merkle/smt/full/leaf.rs

@ -46,7 +46,7 @@ impl SmtLeaf {
let leaf = Self::new_multiple(entries)?; let leaf = Self::new_multiple(entries)?;
// `new_multiple()` checked that all keys map to the same leaf index. We still need // `new_multiple()` checked that all keys map to the same leaf index. We still need
// to ensure that that leaf index is `leaf_index`.
// to ensure that leaf index is `leaf_index`.
if leaf.index() != leaf_index { if leaf.index() != leaf_index {
Err(SmtLeafError::InconsistentMultipleLeafIndices { Err(SmtLeafError::InconsistentMultipleLeafIndices {
leaf_index_from_keys: leaf.index(), leaf_index_from_keys: leaf.index(),

Loading…
Cancel
Save