Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 7cda6c4

Browse files
committed
fix formatting, update lock file and generated idl versions
1 parent 13ba21d commit 7cda6c4

File tree

4 files changed

+26
-22
lines changed

4 files changed

+26
-22
lines changed

account-compression/Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

account-compression/sdk/idl/spl_account_compression.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.3.0",
2+
"version": "0.3.1",
33
"name": "spl_account_compression",
44
"instructions": [
55
{

account-compression/sdk/tests/accountCompression.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ describe('Account Compression', () => {
179179
assert(false, 'Double finalizing should have failed');
180180
} catch {}
181181
});
182-
182+
183183
it('Should be able to close a prepared tree', async () => {
184184
let payerInfo = await provider.connection.getAccountInfo(payer, 'confirmed')!;
185185
let treeInfo = await provider.connection.getAccountInfo(cmt, 'confirmed')!;
@@ -189,12 +189,12 @@ describe('Account Compression', () => {
189189

190190
const closeIx = createCloseEmptyTreeIx(cmt, payer, payer);
191191
await execute(provider, [closeIx], [payerKeypair]);
192-
192+
193193
payerInfo = await provider.connection.getAccountInfo(payer, 'confirmed')!;
194194
const finalLamports = payerInfo!.lamports;
195195
assert(
196196
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',
198198
);
199199

200200
treeInfo = await provider.connection.getAccountInfo(cmt, 'confirmed');
@@ -499,7 +499,7 @@ describe('Account Compression', () => {
499499
});
500500
it('Should be able to close a prepared tree after setting the canopy', async () => {
501501
const merkleTreeRaw = new MerkleTree(leaves);
502-
502+
503503
const appendIx = createAppendCanopyNodesIx(
504504
cmt,
505505
payer,
@@ -518,12 +518,12 @@ describe('Account Compression', () => {
518518

519519
const closeIx = createCloseEmptyTreeIx(cmt, payer, payer);
520520
await execute(provider, [closeIx], [payerKeypair]);
521-
521+
522522
payerInfo = await provider.connection.getAccountInfo(payer, 'confirmed')!;
523523
const finalLamports = payerInfo!.lamports;
524524
assert(
525525
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',
527527
);
528528

529529
treeInfo = await provider.connection.getAccountInfo(cmt, 'confirmed');
@@ -565,7 +565,7 @@ describe('Account Compression', () => {
565565
'confirmed',
566566
);
567567
});
568-
568+
569569
it('Should be able to finalize an empty tree with empty canopy and close it afterwards', async () => {
570570
const merkleTreeRaw = new MerkleTree(leaves);
571571
const root = merkleTreeRaw.root;
@@ -588,12 +588,12 @@ describe('Account Compression', () => {
588588

589589
const closeIx = createCloseEmptyTreeIx(cmt, payer, payer);
590590
await execute(provider, [closeIx], [payerKeypair]);
591-
591+
592592
payerInfo = await provider.connection.getAccountInfo(payer, 'confirmed')!;
593593
const finalLamports = payerInfo!.lamports;
594594
assert(
595595
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',
597597
);
598598

599599
treeInfo = await provider.connection.getAccountInfo(cmt, 'confirmed');
@@ -1054,7 +1054,7 @@ describe('Account Compression', () => {
10541054
payerKeypair,
10551055
0,
10561056
{ maxBufferSize: 8, maxDepth: DEPTH },
1057-
DEPTH // Store full tree on chain
1057+
DEPTH, // Store full tree on chain
10581058
);
10591059
cmt = cmtKeypair.publicKey;
10601060
const appendIx = createAppendCanopyNodesIx(cmt, payer, [crypto.randomBytes(32)], 0);

account-compression/sdk/tests/accounts/concurrentMerkleTreeAccount.test.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function assertCMTProperties(
3535
}
3636
assert(
3737
onChainCMT.getIsBatchInitialized() === expectedIsBatchInitialized,
38-
'On chain isBatchInitialized does not match expected value'
38+
'On chain isBatchInitialized does not match expected value',
3939
);
4040
}
4141

@@ -153,20 +153,24 @@ describe('ConcurrentMerkleTreeAccount tests', () => {
153153
// The account data was generated by running:
154154
// $ solana account 27QMkDMpBoAhmWj6xxQNYdqXZL5nnC8tkZcEtkNxCqeX \
155155
// --output-file tests/fixtures/pre-batch-init-tree-account.json \
156-
// --output json
156+
// --output json
157157
const deployedAccount = new PublicKey('27QMkDMpBoAhmWj6xxQNYdqXZL5nnC8tkZcEtkNxCqeX');
158-
const cmt = await ConcurrentMerkleTreeAccount.fromAccountAddress(
159-
connection,
160-
deployedAccount,
161-
'confirmed'
162-
);
158+
const cmt = await ConcurrentMerkleTreeAccount.fromAccountAddress(connection, deployedAccount, 'confirmed');
163159
const expectedMaxDepth = 10;
164160
const expectedMaxBufferSize = 32;
165161
const expectedCanopyDepth = 0;
166162
const expectedAuthority = new PublicKey('BFNT941iRwYPe2Js64dTJSoksGCptWAwrkKMaSN73XK2');
167163
const expectedRoot = new PublicKey('83UjseEuEgxyVyDTmrJCQ9QbeksdRZ7KPDZGQYc5cAgF').toBuffer();
168164
const expectedIsBatchInitialized = false;
169-
await assertCMTProperties(cmt, expectedMaxDepth, expectedMaxBufferSize, expectedAuthority, expectedRoot, expectedCanopyDepth, expectedIsBatchInitialized);
165+
await assertCMTProperties(
166+
cmt,
167+
expectedMaxDepth,
168+
expectedMaxBufferSize,
169+
expectedAuthority,
170+
expectedRoot,
171+
expectedCanopyDepth,
172+
expectedIsBatchInitialized,
173+
);
170174
});
171175
});
172176
});

0 commit comments

Comments
 (0)