Commit 721c9fe 1 parent 0fc53ff commit 721c9fe Copy full SHA for 721c9fe
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,12 +87,12 @@ export class NoteMerkleTree extends MerkleTree {
87
87
let inputs : Input [ ] = [ ] ;
88
88
let sum = Field . zero ( ) ;
89
89
for ( let note of inputNotes ) {
90
- const input = await this . _createInput ( note ) ;
90
+ const input = await this . createInput ( note ) ;
91
91
inputs . push ( input ) ;
92
92
sum = sum . add ( input . note . amount ) ;
93
93
}
94
94
for ( let i = inputs . length ; i < this . numInputs ; i ++ ) {
95
- inputs . push ( await this . _createInput ( Note . zero ( ) ) ) ;
95
+ inputs . push ( await this . createInput ( Note . zero ( ) ) ) ;
96
96
}
97
97
98
98
if ( depositAmount . isNeg ( ) && depositAmount . neg ( ) . gt ( sum ) ) {
@@ -146,7 +146,7 @@ export class NoteMerkleTree extends MerkleTree {
146
146
) ;
147
147
}
148
148
149
- async _createInput ( note : Note ) {
149
+ async createInput ( note : Note ) {
150
150
const index = await this . findNoteIndex ( note ) ;
151
151
return new Input (
152
152
note ,
You can’t perform that action at this time.
0 commit comments