@@ -11,7 +11,7 @@ import {
1111 MAX_NULLIFIERS_PER_ROLLUP ,
1212 NOTE_HASH_TREE_HEIGHT ,
1313 NULLIFIER_TREE_HEIGHT ,
14- } from "./RollupService " ;
14+ } from "./PoolErc20Service " ;
1515
1616export class TreesService {
1717 constructor ( private contract : PoolERC20 ) { }
@@ -36,11 +36,7 @@ export class TreesService {
3636 . implement ( async ( params ) => {
3737 const { Fr } = await import ( "@aztec/aztec.js" ) ;
3838
39- const { noteHashTree, nullifierTree } = await this . getTrees ( ) ;
40-
41- const nullifierNmWitness = await nullifierTree . getNonMembershipWitness (
42- new Fr ( BigInt ( params . nullifier ) ) ,
43- ) ;
39+ const { noteHashTree } = await this . getTrees ( ) ;
4440
4541 const noteIndex = noteHashTree . findLeafIndex (
4642 new Fr ( BigInt ( params . noteHash ) ) ,
@@ -54,9 +50,6 @@ export class TreesService {
5450 . toTuple ( )
5551 . map ( ( x : Fr ) => x . toString ( ) ) ,
5652 note_index : ethers . toQuantity ( noteIndex ) ,
57- nullifier_low_leaf_preimage : nullifierNmWitness . low_leaf_preimage ,
58- nullifier_low_leaf_membership_witness :
59- nullifierNmWitness . low_leaf_membership_witness ,
6053 } ;
6154 } ) ;
6255
0 commit comments