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

Commit c696118

Browse files
Update token CLI
1 parent a5c11a0 commit c696118

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
@@ -649,7 +649,7 @@ async fn command_initialize_group(
649649
token_pubkey: Pubkey,
650650
mint_authority: Pubkey,
651651
update_authority: Pubkey,
652-
max_size: u32,
652+
max_size: u64,
653653
bulk_signers: Vec<Arc<dyn Signer>>,
654654
) -> CommandResult {
655655
let token = token_client_from_config(config, &token_pubkey, None)?;
@@ -680,7 +680,7 @@ async fn command_update_group_max_size(
680680
config: &Config<'_>,
681681
token_pubkey: Pubkey,
682682
update_authority: Pubkey,
683-
new_max_size: u32,
683+
new_max_size: u64,
684684
bulk_signers: Vec<Arc<dyn Signer>>,
685685
) -> CommandResult {
686686
let token = token_client_from_config(config, &token_pubkey, None)?;
@@ -3639,7 +3639,7 @@ pub async fn process_command<'a>(
36393639
let token_pubkey = pubkey_of_signer(arg_matches, "token", &mut wallet_manager)
36403640
.unwrap()
36413641
.unwrap();
3642-
let max_size = value_t_or_exit!(arg_matches, "max_size", u32);
3642+
let max_size = value_t_or_exit!(arg_matches, "max_size", u64);
36433643
let (mint_authority_signer, mint_authority) =
36443644
config.signer_or_default(arg_matches, "mint_authority", &mut wallet_manager);
36453645
let update_authority =
@@ -3660,7 +3660,7 @@ pub async fn process_command<'a>(
36603660
let token_pubkey = pubkey_of_signer(arg_matches, "token", &mut wallet_manager)
36613661
.unwrap()
36623662
.unwrap();
3663-
let new_max_size = value_t_or_exit!(arg_matches, "new_max_size", u32);
3663+
let new_max_size = value_t_or_exit!(arg_matches, "new_max_size", u64);
36643664
let (update_authority_signer, update_authority) =
36653665
config.signer_or_default(arg_matches, "update_authority", &mut wallet_manager);
36663666
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)