Skip to content

Commit

Permalink
Update e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksondoherty committed Aug 11, 2024
1 parent 86c1ffe commit 944d3ac
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions token/js/src/extensions/tokenGroup/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export async function tokenGroupInitializeGroup(
mint: PublicKey,
mintAuthority: PublicKey | Signer,
updateAuthority: PublicKey | null,
maxSize: number,
maxSize: bigint,
multiSigners: Signer[] = [],
confirmOptions?: ConfirmOptions,
programId = TOKEN_2022_PROGRAM_ID,
Expand Down Expand Up @@ -79,7 +79,7 @@ export async function tokenGroupInitializeGroupWithRentTransfer(
mint: PublicKey,
mintAuthority: PublicKey | Signer,
updateAuthority: PublicKey | null,
maxSize: number,
maxSize: bigint,
multiSigners: Signer[] = [],
confirmOptions?: ConfirmOptions,
programId = TOKEN_2022_PROGRAM_ID,
Expand Down Expand Up @@ -126,7 +126,7 @@ export async function tokenGroupUpdateGroupMaxSize(
payer: Signer,
mint: PublicKey,
updateAuthority: PublicKey | Signer,
maxSize: number,
maxSize: bigint,
multiSigners: Signer[] = [],
confirmOptions?: ConfirmOptions,
programId = TOKEN_2022_PROGRAM_ID,
Expand Down
22 changes: 11 additions & 11 deletions token/js/test/e2e-2022/tokenGroup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ describe('tokenGroup', async () => {
const tokenGroup = {
updateAuthority: updateAuthority.publicKey,
mint: mint.publicKey,
size: 0,
maxSize: 10,
size: BigInt(0),
maxSize: BigInt(10),
};

// Transfer the required amount for rent exemption
Expand Down Expand Up @@ -112,8 +112,8 @@ describe('tokenGroup', async () => {
const tokenGroup = {
updateAuthority: updateAuthority.publicKey,
mint: mint.publicKey,
size: 0,
maxSize: 10,
size: BigInt(0),
maxSize: BigInt(10),
};

await tokenGroupInitializeGroupWithRentTransfer(
Expand All @@ -137,8 +137,8 @@ describe('tokenGroup', async () => {
const tokenGroup = {
updateAuthority: updateAuthority.publicKey,
mint: mint.publicKey,
size: 0,
maxSize: 10,
size: BigInt(0),
maxSize: BigInt(10),
};

// Transfer the required amount for rent exemption
Expand Down Expand Up @@ -169,7 +169,7 @@ describe('tokenGroup', async () => {
payer,
mint.publicKey,
updateAuthority.publicKey,
20,
BigInt(20),
[updateAuthority],
undefined,
TEST_PROGRAM_ID,
Expand All @@ -180,17 +180,17 @@ describe('tokenGroup', async () => {
expect(group).to.deep.equal({
updateAuthority: updateAuthority.publicKey,
mint: mint.publicKey,
size: 0,
maxSize: 20,
size: BigInt(0),
maxSize: BigInt(20),
});
});

it('can update authority', async () => {
const tokenGroup = {
updateAuthority: updateAuthority.publicKey,
mint: mint.publicKey,
size: 0,
maxSize: 10,
size: BigInt(0),
maxSize: BigInt(10),
};

// Transfer the required amount for rent exemption
Expand Down
2 changes: 1 addition & 1 deletion token/js/test/e2e-2022/tokenGroupMember.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ describe('tokenGroupMember', async () => {
groupMint.publicKey,
groupMintAuthority.publicKey,
groupUpdateAuthority.publicKey,
3,
BigInt(3),
[payer, groupMintAuthority],
undefined,
TEST_PROGRAM_ID,
Expand Down

0 comments on commit 944d3ac

Please sign in to comment.