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

Commit 33690d0

Browse files
Update token CLI
1 parent 2857eac commit 33690d0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

token/cli/src/command.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ async fn command_initialize_group(
648648
token_pubkey: Pubkey,
649649
mint_authority: Pubkey,
650650
update_authority: Pubkey,
651-
max_size: u32,
651+
max_size: u64,
652652
bulk_signers: Vec<Arc<dyn Signer>>,
653653
) -> CommandResult {
654654
let token = token_client_from_config(config, &token_pubkey, None)?;
@@ -679,7 +679,7 @@ async fn command_update_group_max_size(
679679
config: &Config<'_>,
680680
token_pubkey: Pubkey,
681681
update_authority: Pubkey,
682-
new_max_size: u32,
682+
new_max_size: u64,
683683
bulk_signers: Vec<Arc<dyn Signer>>,
684684
) -> CommandResult {
685685
let token = token_client_from_config(config, &token_pubkey, None)?;
@@ -3637,7 +3637,7 @@ pub async fn process_command<'a>(
36373637
let token_pubkey = pubkey_of_signer(arg_matches, "token", &mut wallet_manager)
36383638
.unwrap()
36393639
.unwrap();
3640-
let max_size = value_t_or_exit!(arg_matches, "max_size", u32);
3640+
let max_size = value_t_or_exit!(arg_matches, "max_size", u64);
36413641
let (mint_authority_signer, mint_authority) =
36423642
config.signer_or_default(arg_matches, "mint_authority", &mut wallet_manager);
36433643
let update_authority =
@@ -3658,7 +3658,7 @@ pub async fn process_command<'a>(
36583658
let token_pubkey = pubkey_of_signer(arg_matches, "token", &mut wallet_manager)
36593659
.unwrap()
36603660
.unwrap();
3661-
let new_max_size = value_t_or_exit!(arg_matches, "new_max_size", u32);
3661+
let new_max_size = value_t_or_exit!(arg_matches, "new_max_size", u64);
36623662
let (update_authority_signer, update_authority) =
36633663
config.signer_or_default(arg_matches, "update_authority", &mut wallet_manager);
36643664
let bulk_signers = vec![update_authority_signer];

token/cli/tests/command.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4151,7 +4151,7 @@ async fn group(test_validator: &TestValidator, payer: &Keypair) {
41514151
let account = config.rpc_client.get_account(&mint).await.unwrap();
41524152
let group_mint_state = StateWithExtensionsOwned::<Mint>::unpack(account.data).unwrap();
41534153
let extension = group_mint_state.get_extension::<TokenGroup>().unwrap();
4154-
assert_eq!(u32::from(extension.size), 1);
4154+
assert_eq!(u64::from(extension.size), 1);
41554155

41564156
let account = config.rpc_client.get_account(&member_mint).await.unwrap();
41574157
let member_mint_state = StateWithExtensionsOwned::<Mint>::unpack(account.data).unwrap();
@@ -4160,7 +4160,7 @@ async fn group(test_validator: &TestValidator, payer: &Keypair) {
41604160
.unwrap();
41614161
assert_eq!(extension.group, mint);
41624162
assert_eq!(extension.mint, member_mint);
4163-
assert_eq!(u32::from(extension.member_number), 1);
4163+
assert_eq!(u64::from(extension.member_number), 1);
41644164

41654165
// update authority
41664166
process_test_command(

0 commit comments

Comments
 (0)