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

Commit b6bc95d

Browse files
Update e2e tests
1 parent d5b6652 commit b6bc95d

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

token/js/src/extensions/tokenGroup/actions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export async function tokenGroupInitializeGroup(
3535
mint: PublicKey,
3636
mintAuthority: PublicKey | Signer,
3737
updateAuthority: PublicKey | null,
38-
maxSize: number,
38+
maxSize: bigint,
3939
multiSigners: Signer[] = [],
4040
confirmOptions?: ConfirmOptions,
4141
programId = TOKEN_2022_PROGRAM_ID,
@@ -79,7 +79,7 @@ export async function tokenGroupInitializeGroupWithRentTransfer(
7979
mint: PublicKey,
8080
mintAuthority: PublicKey | Signer,
8181
updateAuthority: PublicKey | null,
82-
maxSize: number,
82+
maxSize: bigint,
8383
multiSigners: Signer[] = [],
8484
confirmOptions?: ConfirmOptions,
8585
programId = TOKEN_2022_PROGRAM_ID,
@@ -126,7 +126,7 @@ export async function tokenGroupUpdateGroupMaxSize(
126126
payer: Signer,
127127
mint: PublicKey,
128128
updateAuthority: PublicKey | Signer,
129-
maxSize: number,
129+
maxSize: bigint,
130130
multiSigners: Signer[] = [],
131131
confirmOptions?: ConfirmOptions,
132132
programId = TOKEN_2022_PROGRAM_ID,

token/js/test/e2e-2022/tokenGroup.test.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ describe('tokenGroup', async () => {
7676
const tokenGroup = {
7777
updateAuthority: updateAuthority.publicKey,
7878
mint: mint.publicKey,
79-
size: 0,
80-
maxSize: 10,
79+
size: BigInt(0),
80+
maxSize: BigInt(10),
8181
};
8282

8383
// Transfer the required amount for rent exemption
@@ -112,8 +112,8 @@ describe('tokenGroup', async () => {
112112
const tokenGroup = {
113113
updateAuthority: updateAuthority.publicKey,
114114
mint: mint.publicKey,
115-
size: 0,
116-
maxSize: 10,
115+
size: BigInt(0),
116+
maxSize: BigInt(10),
117117
};
118118

119119
await tokenGroupInitializeGroupWithRentTransfer(
@@ -137,8 +137,8 @@ describe('tokenGroup', async () => {
137137
const tokenGroup = {
138138
updateAuthority: updateAuthority.publicKey,
139139
mint: mint.publicKey,
140-
size: 0,
141-
maxSize: 10,
140+
size: BigInt(0),
141+
maxSize: BigInt(10),
142142
};
143143

144144
// Transfer the required amount for rent exemption
@@ -169,7 +169,7 @@ describe('tokenGroup', async () => {
169169
payer,
170170
mint.publicKey,
171171
updateAuthority.publicKey,
172-
20,
172+
BigInt(20),
173173
[updateAuthority],
174174
undefined,
175175
TEST_PROGRAM_ID,
@@ -180,17 +180,17 @@ describe('tokenGroup', async () => {
180180
expect(group).to.deep.equal({
181181
updateAuthority: updateAuthority.publicKey,
182182
mint: mint.publicKey,
183-
size: 0,
184-
maxSize: 20,
183+
size: BigInt(0),
184+
maxSize: BigInt(20),
185185
});
186186
});
187187

188188
it('can update authority', async () => {
189189
const tokenGroup = {
190190
updateAuthority: updateAuthority.publicKey,
191191
mint: mint.publicKey,
192-
size: 0,
193-
maxSize: 10,
192+
size: BigInt(0),
193+
maxSize: BigInt(10),
194194
};
195195

196196
// Transfer the required amount for rent exemption

token/js/test/e2e-2022/tokenGroupMember.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ describe('tokenGroupMember', async () => {
8383
groupMint.publicKey,
8484
groupMintAuthority.publicKey,
8585
groupUpdateAuthority.publicKey,
86-
3,
86+
BigInt(3),
8787
[payer, groupMintAuthority],
8888
undefined,
8989
TEST_PROGRAM_ID,

0 commit comments

Comments
 (0)