Skip to content

Commit

Permalink
remove underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
zemse committed Mar 17, 2024
1 parent 0fc53ff commit 721c9fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/note-merkle-tree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ export class NoteMerkleTree extends MerkleTree {
let inputs: Input[] = [];
let sum = Field.zero();
for (let note of inputNotes) {
const input = await this._createInput(note);
const input = await this.createInput(note);
inputs.push(input);
sum = sum.add(input.note.amount);
}
for (let i = inputs.length; i < this.numInputs; i++) {
inputs.push(await this._createInput(Note.zero()));
inputs.push(await this.createInput(Note.zero()));
}

if (depositAmount.isNeg() && depositAmount.neg().gt(sum)) {
Expand Down Expand Up @@ -146,7 +146,7 @@ export class NoteMerkleTree extends MerkleTree {
);
}

async _createInput(note: Note) {
async createInput(note: Note) {
const index = await this.findNoteIndex(note);
return new Input(
note,
Expand Down

0 comments on commit 721c9fe

Please sign in to comment.