Skip to content

Commit

Permalink
Update test-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Dec 16, 2024
1 parent 971052b commit 4ba9241
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crates/test-cli/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ enum CliCommand {
new_tss_account: String,
/// New x25519 public key
new_x25519_public_key: String,
/// The new Provisioning Certification Key (PCK) certificate chain to be used for the TSS.
new_pck_certificate_chain: Vec<String>,
/// The Intel TDX quote used to prove that this TSS is running on TDX hardware.
///
/// The quote format is specified in:
Expand Down Expand Up @@ -522,7 +520,6 @@ pub async fn run_command(
CliCommand::ChangeThresholdAccounts {
new_tss_account,
new_x25519_public_key,
new_pck_certificate_chain,
quote,
mnemonic_option,
} => {
Expand All @@ -534,15 +531,12 @@ pub async fn run_command(
let user_keypair = <sr25519::Pair as Pair>::from_string(&mnemonic, None)?;
cli.log(format!("User account for current call: {}", user_keypair.public()));

let new_pck_certificate_chain =
new_pck_certificate_chain.iter().cloned().map(|i| i.into()).collect::<_>();
let result_event = change_threshold_accounts(
&api,
&rpc,
user_keypair,
new_tss_account,
new_x25519_public_key,
new_pck_certificate_chain,
quote.into(),
)
.await?;
Expand Down

0 comments on commit 4ba9241

Please sign in to comment.