From e7f22c9a348b2a878ec52efd89575a2c989bd75b Mon Sep 17 00:00:00 2001 From: Bobbin Threadbare Date: Fri, 5 Apr 2024 19:24:16 -0700 Subject: [PATCH] fix: changed `Self::note_index()` to `Self::leaf_index()` --- objects/src/block/note_tree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objects/src/block/note_tree.rs b/objects/src/block/note_tree.rs index 3158f134e..231c0dfd9 100644 --- a/objects/src/block/note_tree.rs +++ b/objects/src/block/note_tree.rs @@ -57,7 +57,7 @@ impl BlockNoteTree { note_idx_in_batch: usize, ) -> Result { // get the path to the leaf containing the note (path len = 21) - let leaf_index = LeafIndex::new(Self::note_index(batch_idx, note_idx_in_batch))?; + let leaf_index = LeafIndex::new(Self::leaf_index(batch_idx, note_idx_in_batch))?; // move up the path by removing the first node, this path now points to the parent of the // note path