diff --git a/src/lib/alternatives/standard_indexed_tree/standard_indexed_tree.ts b/src/lib/alternatives/standard_indexed_tree/standard_indexed_tree.ts index 07211ab..6480cd7 100644 --- a/src/lib/alternatives/standard_indexed_tree/standard_indexed_tree.ts +++ b/src/lib/alternatives/standard_indexed_tree/standard_indexed_tree.ts @@ -379,20 +379,7 @@ export class StandardIndexedTree extends TreeBase implements IndexedTree { * @param index - The index of the element. */ public async updateLeafWithNoValueCheck(leaf: LeafData, index: bigint): Promise { - let encodedLeaf; - // === origin code block === - /* - if (leaf.value == 0n) { - encodedLeaf = Field(0); - } else { - encodedLeaf = hashEncodedTreeValue(leaf, this.hasher); - } - */ - // === origin code block === - - // === new code block === - encodedLeaf = hashEncodedTreeValue(leaf, this.hasher); - // === new code block === + let encodedLeaf = hashEncodedTreeValue(leaf, this.hasher); this.cachedLeaves[Number(index)] = leaf; await this._updateLeaf(encodedLeaf, index);