diff --git a/token/js/src/extensions/tokenGroup/actions.ts b/token/js/src/extensions/tokenGroup/actions.ts index 8fd56066c10..318c49fe8fe 100644 --- a/token/js/src/extensions/tokenGroup/actions.ts +++ b/token/js/src/extensions/tokenGroup/actions.ts @@ -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, @@ -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, @@ -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, diff --git a/token/js/test/e2e-2022/tokenGroup.test.ts b/token/js/test/e2e-2022/tokenGroup.test.ts index 3b85a570564..45dd9713382 100644 --- a/token/js/test/e2e-2022/tokenGroup.test.ts +++ b/token/js/test/e2e-2022/tokenGroup.test.ts @@ -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 @@ -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( @@ -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 @@ -169,7 +169,7 @@ describe('tokenGroup', async () => { payer, mint.publicKey, updateAuthority.publicKey, - 20, + BigInt(20), [updateAuthority], undefined, TEST_PROGRAM_ID, @@ -180,8 +180,8 @@ describe('tokenGroup', async () => { expect(group).to.deep.equal({ updateAuthority: updateAuthority.publicKey, mint: mint.publicKey, - size: 0, - maxSize: 20, + size: BigInt(0), + maxSize: BigInt(20), }); }); @@ -189,8 +189,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 diff --git a/token/js/test/e2e-2022/tokenGroupMember.test.ts b/token/js/test/e2e-2022/tokenGroupMember.test.ts index 727a5a8623b..ddcf01b6123 100644 --- a/token/js/test/e2e-2022/tokenGroupMember.test.ts +++ b/token/js/test/e2e-2022/tokenGroupMember.test.ts @@ -83,7 +83,7 @@ describe('tokenGroupMember', async () => { groupMint.publicKey, groupMintAuthority.publicKey, groupUpdateAuthority.publicKey, - 3, + BigInt(3), [payer, groupMintAuthority], undefined, TEST_PROGRAM_ID,