@@ -38,14 +38,14 @@ describe('e2e_blacklist_token_contract', () => {
3838
3939 let tokenSim : TokenSimulator ;
4040
41- let slowUpdateTreeSimulator : SparseTree ;
41+ let slowUpdateTreeSimulator : SparseTree < Fr > ;
4242
4343 let cheatCodes : CheatCodes ;
4444
4545 const getMembershipProof = async ( index : bigint , includeUncommitted : boolean ) => {
4646 return {
4747 index,
48- value : Fr . fromBuffer ( slowUpdateTreeSimulator . getLeafValue ( index , includeUncommitted ) ! ) ,
48+ value : slowUpdateTreeSimulator . getLeafValue ( index , includeUncommitted ) ! ,
4949 // eslint-disable-next-line camelcase
5050 sibling_path : ( await slowUpdateTreeSimulator . getSiblingPath ( index , includeUncommitted ) ) . toFields ( ) ,
5151 } ;
@@ -101,9 +101,9 @@ describe('e2e_blacklist_token_contract', () => {
101101 await wallets [ accountIndex ] . addNote ( extendedNote ) ;
102102 } ;
103103
104- const updateSlowTree = async ( tree : SparseTree , wallet : Wallet , index : AztecAddress , value : bigint ) => {
104+ const updateSlowTree = async ( tree : SparseTree < Fr > , wallet : Wallet , index : AztecAddress , value : bigint ) => {
105105 await wallet . addCapsule ( getUpdateCapsule ( await getUpdateProof ( value , index . toBigInt ( ) ) ) ) ;
106- await tree . updateLeaf ( new Fr ( value ) . toBuffer ( ) , index . toBigInt ( ) ) ;
106+ await tree . updateLeaf ( new Fr ( value ) , index . toBigInt ( ) ) ;
107107 } ;
108108
109109 beforeAll ( async ( ) => {
@@ -113,7 +113,7 @@ describe('e2e_blacklist_token_contract', () => {
113113 slowTree = await SlowTreeContract . deploy ( wallets [ 0 ] ) . send ( ) . deployed ( ) ;
114114
115115 const depth = 254 ;
116- slowUpdateTreeSimulator = await newTree ( SparseTree , openTmpStore ( ) , new Pedersen ( ) , 'test' , depth ) ;
116+ slowUpdateTreeSimulator = await newTree ( SparseTree , openTmpStore ( ) , new Pedersen ( ) , 'test' , Fr , depth ) ;
117117
118118 // Add account[0] as admin
119119 await updateSlowTree ( slowUpdateTreeSimulator , wallets [ 0 ] , accounts [ 0 ] . address , 4n ) ;
0 commit comments