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

Commit 3c3d630

Browse files
Update collection example
1 parent 08fc189 commit 3c3d630

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

token-collection/program/tests/setup.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub async fn setup_group(
8989
mint: &Keypair,
9090
mint_authority: &Keypair,
9191
update_authority: Option<Pubkey>,
92-
max_size: u32,
92+
max_size: u64,
9393
rent_lamports: u64,
9494
space: usize,
9595
) {

token-collection/program/tests/token_collection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ async fn test_token_collection() {
325325
.data;
326326
let state = TlvStateBorrowed::unpack(&buffer).unwrap();
327327
let collection = state.get_first_value::<TokenGroup>().unwrap();
328-
assert_eq!(u32::from(collection.size), 3);
328+
assert_eq!(u64::from(collection.size), 3);
329329

330330
// The "Snakes" collection should have 2 members
331331
let buffer = context
@@ -337,7 +337,7 @@ async fn test_token_collection() {
337337
.data;
338338
let state = TlvStateBorrowed::unpack(&buffer).unwrap();
339339
let collection = state.get_first_value::<TokenGroup>().unwrap();
340-
assert_eq!(u32::from(collection.size), 2);
340+
assert_eq!(u64::from(collection.size), 2);
341341

342342
// The "Python" should be a member of 2 collections
343343
let buffer = context

0 commit comments

Comments
 (0)