Skip to content

Commit

Permalink
clean after review
Browse files Browse the repository at this point in the history
Signed-off-by: Karim Taam <[email protected]>
  • Loading branch information
matkt committed Nov 7, 2024
1 parent 4eee471 commit 3e83718
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ private List<Bytes> getStemExtensions() {
int depth = location.size();
List<Bytes> extensions = new ArrayList<>();
for (Node<V> childNode : getChildren()) {
if (childNode instanceof StemNode<V>) {
if (childNode instanceof StemNode) {
extensions.add(((StemNode<V>) childNode).getStem().slice(depth));
} else if (childNode instanceof StoredStemNode<V>) {
} else if (childNode instanceof StoredStemNode) {
extensions.add(((StoredStemNode<V>) childNode).getStem().slice(depth));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public StemNode(
* @param location Optional location in the tree.
* @param stem Node's stem.
* @param hash Optional node's vector commitment's hash.
* @param previousHash Optional node's vector previous commitment's hash.
* @param commitment Optional node's vector commitment.
* @param leftHash Optional hash of vector commitment to left values.
* @param leftCommitment Optional vector commitment to left values.
Expand Down

0 comments on commit 3e83718

Please sign in to comment.