Skip to content

Commit

Permalink
fix: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal committed Jun 25, 2024
1 parent d8f6b6f commit b8c6157
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cmd/soroban-cli/src/commands/config/secret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ impl SignerKind {

pub fn signer(&self, index: Option<usize>, prompt: bool) -> Result<StellarSigner, Error> {
match self {
SignerKind::SecretKey { .. } | SignerKind::SeedPhrase { .. } => Ok(StellarSigner::Local(
LocalKey::new(self.key_pair(index)?, prompt),
)),
SignerKind::SecretKey { .. } | SignerKind::SeedPhrase { .. } => Ok(
StellarSigner::Local(LocalKey::new(self.key_pair(index)?, prompt)),
),
SignerKind::Ledger => {
let hd_path: u32 = index
.unwrap_or_default()
Expand Down
5 changes: 4 additions & 1 deletion cmd/soroban-cli/src/commands/keys/address.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use clap::arg;

use super::super::config::{secret, locator::{self, KeyName}};
use super::super::config::{
locator::{self, KeyName},
secret,
};

#[derive(thiserror::Error, Debug)]
pub enum Error {
Expand Down
3 changes: 1 addition & 2 deletions cmd/soroban-cli/src/commands/keys/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ impl Cmd {
} else {
seed_phrase
};
self.config_locator
.write_identity(&self.name, &secret)?;
self.config_locator.write_identity(&self.name, &secret)?;
if !self.no_fund {
let addr = secret.public_key(self.hd_path).await?;
let network = self.network.get(&self.config_locator)?;
Expand Down

0 comments on commit b8c6157

Please sign in to comment.