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

Commit 5705efe

Browse files
committed
Fixup account compression tests
1 parent 041a1f9 commit 5705efe

File tree

7 files changed

+46
-46
lines changed

7 files changed

+46
-46
lines changed

account-compression/Cargo.lock

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

account-compression/sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"devDependencies": {
6767
"@metaplex-foundation/rustbin": "^0.3.5",
6868
"@metaplex-foundation/solita": "0.20.1",
69-
"@project-serum/anchor": "^0.26.0",
69+
"@coral-xyz/anchor": "^0.27.0",
7070
"@solana/eslint-config-solana": "^3.0.3",
7171
"@solana/prettier-config-solana": "^0.0.5",
7272
"@types/bn.js": "^5.1.0",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { strict as assert } from 'node:assert';
22

3-
import { AnchorProvider } from '@project-serum/anchor';
4-
import NodeWallet from '@project-serum/anchor/dist/cjs/nodewallet';
3+
import { AnchorProvider } from '@coral-xyz/anchor';
4+
import NodeWallet from '@coral-xyz/anchor/dist/cjs/nodewallet';
55
import { Connection, Keypair, PublicKey, TransactionInstruction } from '@solana/web3.js';
66
import { BN } from 'bn.js';
77
import * as crypto from 'crypto';
@@ -385,7 +385,7 @@ describe('Account Compression', () => {
385385
await execute(provider, ixs, [payerKeypair]);
386386
}
387387
});
388-
it('Testing canopy for appends and replaces on a full on chain tree', async () => {
388+
it.only('Testing canopy for appends and replaces on a full on chain tree', async () => {
389389
[cmtKeypair, offChainTree] = await createTreeOnChain(
390390
provider,
391391
payerKeypair,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { strict as assert } from 'node:assert';
22

3-
import { AnchorProvider } from '@project-serum/anchor';
4-
import NodeWallet from '@project-serum/anchor/dist/cjs/nodewallet';
3+
import { AnchorProvider } from '@coral-xyz/anchor';
4+
import NodeWallet from '@coral-xyz/anchor/dist/cjs/nodewallet';
55
import { Connection, Keypair, PublicKey } from '@solana/web3.js';
66

77
import { ALL_DEPTH_SIZE_PAIRS, ConcurrentMerkleTreeAccount, getConcurrentMerkleTreeAccountSize } from '../../src';

account-compression/sdk/tests/events/changelog.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { strict as assert } from "node:assert";
22

3-
import { AnchorProvider } from "@project-serum/anchor";
4-
import NodeWallet from "@project-serum/anchor/dist/cjs/nodewallet";
5-
import { bs58 } from "@project-serum/anchor/dist/cjs/utils/bytes";
3+
import { AnchorProvider } from "@coral-xyz/anchor";
4+
import NodeWallet from "@coral-xyz/anchor/dist/cjs/nodewallet";
5+
import { bs58 } from "@coral-xyz/anchor/dist/cjs/utils/bytes";
66
import { Connection, Keypair, PublicKey } from "@solana/web3.js";
77
import { BN } from "bn.js";
88
import * as crypto from "crypto";

account-compression/sdk/tests/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { AnchorProvider } from '@project-serum/anchor';
1+
import { AnchorProvider } from '@coral-xyz/anchor';
22
import { Keypair, SendTransactionError, Signer, Transaction, TransactionInstruction } from '@solana/web3.js';
33
import * as crypto from 'crypto';
44

@@ -9,7 +9,7 @@ import { MerkleTree } from '../src/merkle-tree';
99
export async function confirmAndLogTx(provider: AnchorProvider, txId: string, verbose = false) {
1010
const tx = await provider.connection.confirmTransaction(txId, 'confirmed');
1111
if (tx.value.err || verbose) {
12-
console.log((await provider.connection.getConfirmedTransaction(txId, 'confirmed'))!.meta!.logMessages);
12+
console.log((await provider.connection.getTransaction(txId, { commitment: 'confirmed' }))!.meta!.logMessages);
1313
}
1414
if (tx.value.err) {
1515
console.log('Transaction failed');
@@ -43,7 +43,7 @@ export async function execute(
4343
}
4444

4545
if (verbose && txid) {
46-
console.log((await provider.connection.getConfirmedTransaction(txid, 'confirmed'))!.meta!.logMessages);
46+
console.log((await provider.connection.getTransaction(txid, { commitment: 'confirmed' }))!.meta!.logMessages);
4747
}
4848

4949
return txid;

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)