Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Elizabeth Engelman <[email protected]>
  • Loading branch information
willemneal and elizabethengelman authored Dec 13, 2024
1 parent aa8bb16 commit 64cd37b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/soroban-cli/src/commands/tx/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ impl Args {
Ok(self.config.source_account()?)
}

pub fn reslove_muxed_address(&self, address: &Address) -> Result<xdr::MuxedAccount, Error> {
pub fn resolve_muxed_address(&self, address: &Address) -> Result<xdr::MuxedAccount, Error> {
Ok(address.resolve_muxed_account(&self.config.locator, self.config.hd_path)?)
}

pub fn reslove_account_id(&self, address: &Address) -> Result<xdr::AccountId, Error> {
pub fn resolve_account_id(&self, address: &Address) -> Result<xdr::AccountId, Error> {
Ok(address
.resolve_muxed_account(&self.config.locator, self.config.hd_path)?
.account_id())
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/src/config/locator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ impl Args {
}
}

pub fn get_private_key(&self, key_or_name: &str) -> Result<Secret, Error> {
pub fn get_secret_key(&self, key_or_name: &str) -> Result<Secret, Error> {
match self.read_key(key_or_name)? {
Key::Secret(s) => Ok(s),
_ => Err(Error::SecretKeyOnly(key_or_name.to_string())),
Expand Down

0 comments on commit 64cd37b

Please sign in to comment.