@@ -179,7 +179,7 @@ describe('Account Compression', () => {
179
179
assert ( false , 'Double finalizing should have failed' ) ;
180
180
} catch { }
181
181
} ) ;
182
-
182
+
183
183
it ( 'Should be able to close a prepared tree' , async ( ) => {
184
184
let payerInfo = await provider . connection . getAccountInfo ( payer , 'confirmed' ) ! ;
185
185
let treeInfo = await provider . connection . getAccountInfo ( cmt , 'confirmed' ) ! ;
@@ -189,12 +189,12 @@ describe('Account Compression', () => {
189
189
190
190
const closeIx = createCloseEmptyTreeIx ( cmt , payer , payer ) ;
191
191
await execute ( provider , [ closeIx ] , [ payerKeypair ] ) ;
192
-
192
+
193
193
payerInfo = await provider . connection . getAccountInfo ( payer , 'confirmed' ) ! ;
194
194
const finalLamports = payerInfo ! . lamports ;
195
195
assert (
196
196
finalLamports === payerLamports + treeLamports - 5000 ,
197
- 'Expected payer to have received the lamports from the closed tree account'
197
+ 'Expected payer to have received the lamports from the closed tree account' ,
198
198
) ;
199
199
200
200
treeInfo = await provider . connection . getAccountInfo ( cmt , 'confirmed' ) ;
@@ -499,7 +499,7 @@ describe('Account Compression', () => {
499
499
} ) ;
500
500
it ( 'Should be able to close a prepared tree after setting the canopy' , async ( ) => {
501
501
const merkleTreeRaw = new MerkleTree ( leaves ) ;
502
-
502
+
503
503
const appendIx = createAppendCanopyNodesIx (
504
504
cmt ,
505
505
payer ,
@@ -518,12 +518,12 @@ describe('Account Compression', () => {
518
518
519
519
const closeIx = createCloseEmptyTreeIx ( cmt , payer , payer ) ;
520
520
await execute ( provider , [ closeIx ] , [ payerKeypair ] ) ;
521
-
521
+
522
522
payerInfo = await provider . connection . getAccountInfo ( payer , 'confirmed' ) ! ;
523
523
const finalLamports = payerInfo ! . lamports ;
524
524
assert (
525
525
finalLamports === payerLamports + treeLamports - 5000 ,
526
- 'Expected payer to have received the lamports from the closed tree account'
526
+ 'Expected payer to have received the lamports from the closed tree account' ,
527
527
) ;
528
528
529
529
treeInfo = await provider . connection . getAccountInfo ( cmt , 'confirmed' ) ;
@@ -565,7 +565,7 @@ describe('Account Compression', () => {
565
565
'confirmed' ,
566
566
) ;
567
567
} ) ;
568
-
568
+
569
569
it ( 'Should be able to finalize an empty tree with empty canopy and close it afterwards' , async ( ) => {
570
570
const merkleTreeRaw = new MerkleTree ( leaves ) ;
571
571
const root = merkleTreeRaw . root ;
@@ -588,12 +588,12 @@ describe('Account Compression', () => {
588
588
589
589
const closeIx = createCloseEmptyTreeIx ( cmt , payer , payer ) ;
590
590
await execute ( provider , [ closeIx ] , [ payerKeypair ] ) ;
591
-
591
+
592
592
payerInfo = await provider . connection . getAccountInfo ( payer , 'confirmed' ) ! ;
593
593
const finalLamports = payerInfo ! . lamports ;
594
594
assert (
595
595
finalLamports === payerLamports + treeLamports - 5000 ,
596
- 'Expected payer to have received the lamports from the closed tree account'
596
+ 'Expected payer to have received the lamports from the closed tree account' ,
597
597
) ;
598
598
599
599
treeInfo = await provider . connection . getAccountInfo ( cmt , 'confirmed' ) ;
@@ -1054,7 +1054,7 @@ describe('Account Compression', () => {
1054
1054
payerKeypair ,
1055
1055
0 ,
1056
1056
{ maxBufferSize : 8 , maxDepth : DEPTH } ,
1057
- DEPTH // Store full tree on chain
1057
+ DEPTH , // Store full tree on chain
1058
1058
) ;
1059
1059
cmt = cmtKeypair . publicKey ;
1060
1060
const appendIx = createAppendCanopyNodesIx ( cmt , payer , [ crypto . randomBytes ( 32 ) ] , 0 ) ;
0 commit comments