Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Nov 29, 2023
1 parent 7e80745 commit 2a372ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions token/cli/src/clap_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ pub fn app<'a, 'b>(
Arg::with_name("group_address")
.long("group-address")
.value_name("ADDRESS")
.validator(is_valid_pubkey)
.takes_value(true)
.conflicts_with("enable_group")
.help(
Expand Down
8 changes: 5 additions & 3 deletions token/cli/tests/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3296,9 +3296,10 @@ async fn group_pointer(test_validator: &TestValidator, payer: &Keypair) {
&group_address.to_string(),
],
)
.await;
.await
.unwrap();

let value: serde_json::Value = serde_json::from_str(&result.unwrap()).unwrap();
let value: serde_json::Value = serde_json::from_str(&result).unwrap();
let mint = Pubkey::from_str(value["commandOutput"]["address"].as_str().unwrap()).unwrap();
let account = config.rpc_client.get_account(&mint).await.unwrap();
let mint_state = StateWithExtensionsOwned::<Mint>::unpack(account.data).unwrap();
Expand Down Expand Up @@ -3344,7 +3345,8 @@ async fn group_pointer(test_validator: &TestValidator, payer: &Keypair) {
"--disable",
],
)
.await;
.await
.unwrap();

let new_account_disbale = config.rpc_client.get_account(&mint).await.unwrap();
let new_mint_state_disable =
Expand Down

0 comments on commit 2a372ed

Please sign in to comment.