@@ -282,10 +282,10 @@ describe("SparseMerkleTree", () => {
282282 await merkleTree . addUint ( hexKey , key ) ;
283283 }
284284
285- expect ( merkleTree . removeUint ( ethers . toBeHex ( 8 , 32 ) ) ) . to . be . revertedWith (
285+ await expect ( merkleTree . removeUint ( ethers . toBeHex ( 8 , 32 ) ) ) . to . be . revertedWith (
286286 "SparseMerkleTree: the node does not exist" ,
287287 ) ;
288- expect ( merkleTree . removeUint ( ethers . toBeHex ( 9 , 32 ) ) ) . to . be . revertedWith (
288+ await expect ( merkleTree . removeUint ( ethers . toBeHex ( 9 , 32 ) ) ) . to . be . revertedWith (
289289 "SparseMerkleTree: the leaf does not match" ,
290290 ) ;
291291 } ) ;
@@ -328,10 +328,10 @@ describe("SparseMerkleTree", () => {
328328 await merkleTree . addUint ( hexKey , key ) ;
329329 }
330330
331- expect ( merkleTree . updateUint ( ethers . toBeHex ( 8 , 32 ) , 1n ) ) . to . be . revertedWith (
331+ await expect ( merkleTree . updateUint ( ethers . toBeHex ( 8 , 32 ) , 1n ) ) . to . be . revertedWith (
332332 "SparseMerkleTree: the node does not exist" ,
333333 ) ;
334- expect ( merkleTree . updateUint ( ethers . toBeHex ( 9 , 32 ) , 1n ) ) . to . be . revertedWith (
334+ await expect ( merkleTree . updateUint ( ethers . toBeHex ( 9 , 32 ) , 1n ) ) . to . be . revertedWith (
335335 "SparseMerkleTree: the leaf does not match" ,
336336 ) ;
337337 } ) ;
0 commit comments